pub enum LifecycleEvent<'a> {
Start,
Connecting {
websocket_url: &'a str,
},
Connected {
websocket_url: &'a str,
},
WebsocketWrite {
payload: &'a str,
result: &'a Result<()>,
},
WebsocketWriteWithRetry {
payload: &'a str,
cnt: u8,
result: &'a Result<()>,
},
WebsocketRead {
result: &'a Result<Message>,
},
Keepalive {
payload: &'a str,
result: &'a Result<()>,
},
Disconnected {
result: &'a Result<()>,
},
Stopped,
}Variants§
Start
Connecting
Connected
WebsocketWrite
WebsocketWriteWithRetry
WebsocketRead
Keepalive
Disconnected
Stopped
Trait Implementations§
Source§impl<'a> Clone for LifecycleEvent<'a>
impl<'a> Clone for LifecycleEvent<'a>
Source§fn clone(&self) -> LifecycleEvent<'a>
fn clone(&self) -> LifecycleEvent<'a>
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<'a> Debug for LifecycleEvent<'a>
impl<'a> Debug for LifecycleEvent<'a>
impl<'a> Copy for LifecycleEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for LifecycleEvent<'a>
impl<'a> RefUnwindSafe for LifecycleEvent<'a>
impl<'a> Send for LifecycleEvent<'a>
impl<'a> Sync for LifecycleEvent<'a>
impl<'a> Unpin for LifecycleEvent<'a>
impl<'a> UnsafeUnpin for LifecycleEvent<'a>
impl<'a> UnwindSafe for LifecycleEvent<'a>
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