pub enum WaitError {
Timeout,
Closed,
Lagged,
}Expand description
Errors from WebSocket::wait_for_event.
Variants§
Timeout
No event arrived before the deadline.
Closed
The event bus was closed (the page/session went away).
Lagged
The receiver lagged behind and dropped events.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WaitError
impl RefUnwindSafe for WaitError
impl Send for WaitError
impl Sync for WaitError
impl Unpin for WaitError
impl UnsafeUnpin for WaitError
impl UnwindSafe for WaitError
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