pub enum ChannelEvent {
Protocol(ProtocolEvent),
Disconnected,
JoinPayloadError(String),
Lagged {
dropped: u64,
},
}Expand description
Protocol or lifecycle notification for one channel topic.
Variants§
Protocol(ProtocolEvent)
A semantic Phoenix protocol event.
Disconnected
The underlying socket disconnected.
JoinPayloadError(String)
The join payload loader failed.
Lagged
This bounded event subscriber fell behind.
Consumers that maintain derived state must resynchronize.
Implementations§
Trait Implementations§
Source§impl Clone for ChannelEvent
impl Clone for ChannelEvent
Source§fn clone(&self) -> ChannelEvent
fn clone(&self) -> ChannelEvent
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 ChannelEvent
impl Debug for ChannelEvent
Source§impl PartialEq for ChannelEvent
impl PartialEq for ChannelEvent
Source§fn eq(&self, other: &ChannelEvent) -> bool
fn eq(&self, other: &ChannelEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChannelEvent
Auto Trait Implementations§
impl Freeze for ChannelEvent
impl RefUnwindSafe for ChannelEvent
impl Send for ChannelEvent
impl Sync for ChannelEvent
impl Unpin for ChannelEvent
impl UnsafeUnpin for ChannelEvent
impl UnwindSafe for ChannelEvent
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