pub enum ChannelStatus {
WaitingForSocket,
WaitingToJoin,
Joining,
Joined,
Leaving,
Left,
Errored,
Closed,
}Expand description
Observable lifecycle state for one channel topic.
Variants§
WaitingForSocket
The channel is waiting for the socket to connect.
WaitingToJoin
The socket is connected and the channel has not joined yet.
Joining
A join request is pending.
Joined
The server accepted the join.
Leaving
A leave request is pending.
Left
The channel left successfully.
Errored
A join was rejected or the server sent phx_error.
Closed
The handle was dropped, the server closed it, or the driver stopped.
Trait Implementations§
Source§impl Clone for ChannelStatus
impl Clone for ChannelStatus
Source§fn clone(&self) -> ChannelStatus
fn clone(&self) -> ChannelStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelStatus
impl Debug for ChannelStatus
Source§impl PartialEq for ChannelStatus
impl PartialEq for ChannelStatus
Source§fn eq(&self, other: &ChannelStatus) -> bool
fn eq(&self, other: &ChannelStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ChannelStatus
impl Eq for ChannelStatus
impl StructuralPartialEq for ChannelStatus
Auto Trait Implementations§
impl Freeze for ChannelStatus
impl RefUnwindSafe for ChannelStatus
impl Send for ChannelStatus
impl Sync for ChannelStatus
impl Unpin for ChannelStatus
impl UnsafeUnpin for ChannelStatus
impl UnwindSafe for ChannelStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more