pub enum WebSocketStreamError {
WebSocket(Error),
UnsupportedWebSocketMessage,
Decoder(DecodeError),
}Variants§
Trait Implementations§
Source§impl Debug for WebSocketStreamError
impl Debug for WebSocketStreamError
Source§impl Display for WebSocketStreamError
impl Display for WebSocketStreamError
Source§impl Error for WebSocketStreamError
impl Error for WebSocketStreamError
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()
Source§impl From<&WebSocketStreamError> for GenericWebSocketError
impl From<&WebSocketStreamError> for GenericWebSocketError
Source§fn from(value: &WebSocketStreamError) -> Self
fn from(value: &WebSocketStreamError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for WebSocketStreamError
impl From<DecodeError> for WebSocketStreamError
Source§impl From<Error> for WebSocketStreamError
impl From<Error> for WebSocketStreamError
Source§fn from(source: TungsteniteError) -> Self
fn from(source: TungsteniteError) -> Self
Converts to this type from the input type.
Source§impl From<WebSocketStreamError> for WebSocketError
impl From<WebSocketStreamError> for WebSocketError
Source§fn from(source: WebSocketStreamError) -> Self
fn from(source: WebSocketStreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for WebSocketStreamError
impl !RefUnwindSafe for WebSocketStreamError
impl Send for WebSocketStreamError
impl Sync for WebSocketStreamError
impl Unpin for WebSocketStreamError
impl !UnwindSafe for WebSocketStreamError
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