Struct WebSocketError
pub struct WebSocketError(/* private fields */);Expand description
A failure of the websocket transport.
Its cause, e.g. the std::io::Error of a read timeout, is reachable
through std::error::Error::source.
Opaque on purpose: exposing the websocket library’s error type would make every breaking upgrade of that library a breaking change of this crate.
Trait Implementations§
§impl Debug for WebSocketError
impl Debug for WebSocketError
§impl Display for WebSocketError
impl Display for WebSocketError
§impl Error for WebSocketError
impl Error for WebSocketError
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for WebSocketError
impl !UnwindSafe for WebSocketError
impl Freeze for WebSocketError
impl Send for WebSocketError
impl Sync for WebSocketError
impl Unpin for WebSocketError
impl UnsafeUnpin for WebSocketError
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