pub enum SubscriptionEvent {
Message(Payload),
Disconnected,
ChannelError(Payload),
ChannelClosed(Payload),
Lagged {
dropped: u64,
},
}Expand description
Event returned by an application-event subscription.
Variants§
Message(Payload)
A matching application message.
Disconnected
The underlying socket disconnected.
ChannelError(Payload)
The server sent phx_error for the channel.
ChannelClosed(Payload)
The server sent phx_close for the channel.
Lagged
The bounded event stream dropped messages.
dropped is the number discarded before this notification.
Trait Implementations§
Source§impl Clone for SubscriptionEvent
impl Clone for SubscriptionEvent
Source§fn clone(&self) -> SubscriptionEvent
fn clone(&self) -> SubscriptionEvent
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 SubscriptionEvent
impl Debug for SubscriptionEvent
Source§impl PartialEq for SubscriptionEvent
impl PartialEq for SubscriptionEvent
Source§fn eq(&self, other: &SubscriptionEvent) -> bool
fn eq(&self, other: &SubscriptionEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubscriptionEvent
Auto Trait Implementations§
impl Freeze for SubscriptionEvent
impl RefUnwindSafe for SubscriptionEvent
impl Send for SubscriptionEvent
impl Sync for SubscriptionEvent
impl Unpin for SubscriptionEvent
impl UnsafeUnpin for SubscriptionEvent
impl UnwindSafe for SubscriptionEvent
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