pub enum Error {
ConnectionError(BackendError),
SendError(BackendError),
ReceiveError(BackendError),
}Expand description
All possible errors emitted by the WebSocket.
Variants§
ConnectionError(BackendError)
Error emitted if the connection fails.
SendError(BackendError)
Error emitted if sending a message fails.
ReceiveError(BackendError)
Error emitted if receiving a message fails.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more