#[non_exhaustive]pub enum ManagedWsState {
Connecting,
Connected {
connection_epoch: u64,
},
Authenticated {
connection_epoch: u64,
},
Reconciled {
connection_epoch: u64,
},
Ready {
connection_epoch: u64,
},
Reconnecting {
attempt: u64,
delay_ms: u64,
},
Closed {
reason: ManagedWsTerminationReason,
},
}Expand description
Latest lifecycle state of a managed connection.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Connecting
Connected
Authenticated
Reconciled
Ready
Reconnecting
Closed
Fields
§
reason: ManagedWsTerminationReasonTrait Implementations§
Source§impl Clone for ManagedWsState
impl Clone for ManagedWsState
Source§impl Debug for ManagedWsState
impl Debug for ManagedWsState
impl Eq for ManagedWsState
Source§impl PartialEq for ManagedWsState
impl PartialEq for ManagedWsState
impl StructuralPartialEq for ManagedWsState
Auto Trait Implementations§
impl Forget for ManagedWsState
impl Freeze for ManagedWsState
impl RefUnwindSafe for ManagedWsState
impl Send for ManagedWsState
impl Sync for ManagedWsState
impl Unpin for ManagedWsState
impl UnsafeUnpin for ManagedWsState
impl UnwindSafe for ManagedWsState
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more