pub enum SubState {
Pending,
Active,
Failed,
}Expand description
The state of one subscription as the core sees it.
Variants§
Pending
The subscribe message is queued or sent, and the broker has not confirmed it yet. Also the state after a reconnect, until the broker confirms again. Data that arrives for a pending subscription marks it active, because data can overtake the confirmation.
Active
The broker confirmed the subscription, or data for it has arrived.
Failed
The broker answered with an error while the subscription was pending. The core does not retry. The connector reports it to the caller.
Trait Implementations§
impl Copy for SubState
impl Eq for SubState
impl StructuralPartialEq for SubState
Auto Trait Implementations§
impl Freeze for SubState
impl RefUnwindSafe for SubState
impl Send for SubState
impl Sync for SubState
impl Unpin for SubState
impl UnsafeUnpin for SubState
impl UnwindSafe for SubState
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.