pub enum WebSocketSessionLifecycle {
Starting {
attempt: u32,
max_attempts: u32,
},
Open {
attempt: u32,
},
Sent {
message: WebSocketSend,
},
Closing {
code: Option<u16>,
reason: Option<String>,
},
Closed {
code: Option<u16>,
reason: Option<String>,
},
Retrying {
attempt: u32,
next_attempt: u32,
delay_ms: u64,
error: String,
},
Exhausted {
attempt: u32,
error: String,
},
}Expand description
WebSocketSessionLifecycle variants.
Variants§
Starting
Starting variant.
Fields
Open
Open variant.
Sent
Sent variant.
Fields
§
message: WebSocketSendmessage field for message.
Closing
Closing variant.
Closed
Closed variant.
Retrying
Retrying variant.
Fields
Exhausted
Exhausted variant.
Trait Implementations§
Source§impl Clone for WebSocketSessionLifecycle
impl Clone for WebSocketSessionLifecycle
Source§fn clone(&self) -> WebSocketSessionLifecycle
fn clone(&self) -> WebSocketSessionLifecycle
Returns a duplicate of the value. Read more
1.0.0 · 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 WebSocketSessionLifecycle
impl Debug for WebSocketSessionLifecycle
impl Eq for WebSocketSessionLifecycle
impl StructuralPartialEq for WebSocketSessionLifecycle
Auto Trait Implementations§
impl Freeze for WebSocketSessionLifecycle
impl RefUnwindSafe for WebSocketSessionLifecycle
impl Send for WebSocketSessionLifecycle
impl Sync for WebSocketSessionLifecycle
impl Unpin for WebSocketSessionLifecycle
impl UnsafeUnpin for WebSocketSessionLifecycle
impl UnwindSafe for WebSocketSessionLifecycle
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
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.