pub enum LoginEvent {
StatusUpdate(LoginState),
Heartbeat,
Close,
Error(String),
}Available on non-WebAssembly only.
Expand description
SSE event types
Variants§
StatusUpdate(LoginState)
Status update event
Heartbeat
Heartbeat event (no data)
Close
Stream closed event
Error(String)
Error event
Trait Implementations§
Source§impl Clone for LoginEvent
impl Clone for LoginEvent
Source§fn clone(&self) -> LoginEvent
fn clone(&self) -> LoginEvent
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 moreAuto Trait Implementations§
impl Freeze for LoginEvent
impl RefUnwindSafe for LoginEvent
impl Send for LoginEvent
impl Sync for LoginEvent
impl Unpin for LoginEvent
impl UnwindSafe for LoginEvent
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