#[non_exhaustive]pub enum ManagedWsEvent {
Connected,
Authenticated,
Reconciled,
Ready,
Reconnecting {
attempt: u64,
delay_ms: u64,
},
Disconnected {
close: Option<ServerClose>,
},
Error(ManagedWsFailure),
UnreadableFrame(UnreadableFrame),
Terminated(ManagedWsTerminationReason),
}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.
Connected
Authenticated
Reconciled
Ready
Reconnecting
Disconnected
close is the server’s close frame, if it sent one.
Fields
§
close: Option<ServerClose>Error(ManagedWsFailure)
UnreadableFrame(UnreadableFrame)
A frame this SDK cannot decode was skipped and the session stays up. Message
receivers see ManagedReceiveError::Gap, so rebuild state as after any gap.
Terminated(ManagedWsTerminationReason)
Trait Implementations§
Source§impl Clone for ManagedWsEvent
impl Clone for ManagedWsEvent
Auto Trait Implementations§
impl Forget for ManagedWsEvent
impl Freeze for ManagedWsEvent
impl RefUnwindSafe for ManagedWsEvent
impl Send for ManagedWsEvent
impl Sync for ManagedWsEvent
impl Unpin for ManagedWsEvent
impl UnsafeUnpin for ManagedWsEvent
impl UnwindSafe for ManagedWsEvent
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