pub enum TungsteniteError {
NotConnected,
WebSocket(Error),
Request(String),
}Expand description
Errors from the TungsteniteTransport.
Variants§
NotConnected
The transport is not connected.
WebSocket(Error)
WebSocket protocol error from tungstenite.
Request(String)
Failed to construct the HTTP request (e.g. bad URL or header).
Trait Implementations§
Source§impl Debug for TungsteniteError
impl Debug for TungsteniteError
Source§impl Display for TungsteniteError
impl Display for TungsteniteError
Source§impl Error for TungsteniteError
impl Error for TungsteniteError
Source§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 !Freeze for TungsteniteError
impl !RefUnwindSafe for TungsteniteError
impl Send for TungsteniteError
impl Sync for TungsteniteError
impl Unpin for TungsteniteError
impl !UnwindSafe for TungsteniteError
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