pub enum Event {
Opened,
Frame(Box<Frame>),
Unreadable(BadFrame),
Closed {
reason: String,
retry: Retry,
},
}Expand description
What a feed hands back, in the order it happened.
Variants§
Opened
The socket opened and everything wanted was subscribed again.
Frame(Box<Frame>)
Boxed: a frame is large and most events are not frames.
Unreadable(BadFrame)
A frame that did not read. The socket is still alive.
Closed
The socket closed, or could not open. The feed dials again after
retry.after_ms; the posts in retry.unanswered may or may not have
landed, so read the account to find out.
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.