pub enum WebSocketError {
Show 19 variants
InvalidFragment,
InvalidUTF8,
InvalidContinuationFrame,
InvalidStatusCode(u16),
InvalidUpgradeHeader,
InvalidConnectionHeader,
ConnectionClosed,
InvalidCloseFrame,
InvalidCloseCode,
UnexpectedEOF,
ReservedBitsNotZero,
ControlFrameFragmented,
PingFrameTooLarge,
FrameTooLarge,
InvalidSecWebsocketVersion,
InvalidValue,
MissingSecWebSocketKey,
IoError(Error),
HTTPError(Error),
}
Variants§
InvalidFragment
InvalidUTF8
InvalidContinuationFrame
InvalidStatusCode(u16)
InvalidUpgradeHeader
InvalidConnectionHeader
ConnectionClosed
InvalidCloseFrame
InvalidCloseCode
UnexpectedEOF
ReservedBitsNotZero
ControlFrameFragmented
PingFrameTooLarge
FrameTooLarge
InvalidSecWebsocketVersion
InvalidValue
MissingSecWebSocketKey
IoError(Error)
HTTPError(Error)
Trait Implementations§
Source§impl Debug for WebSocketError
impl Debug for WebSocketError
Source§impl Display for WebSocketError
impl Display for WebSocketError
Source§impl Error for WebSocketError
impl Error for WebSocketError
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<Error> for WebSocketError
impl From<Error> for WebSocketError
Auto Trait Implementations§
impl Freeze for WebSocketError
impl !RefUnwindSafe for WebSocketError
impl Send for WebSocketError
impl Sync for WebSocketError
impl Unpin for WebSocketError
impl !UnwindSafe 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