[−][src]Enum websockets::WebSocketError
The possible error types from the WebSocket connection.
Variants
TcpConnectionError(IoError)
Error connecting using TCP
TlsConnectionError(NativeTlsError)
Error connecting using TLS
Attempted to use the WebSocket when it is already closed
ShutdownError(IoError)
Error shutting down the internal stream
Invalid handshake response from the server
The server rejected the handshake request
Fields of HandshakeFailedError
Attempted to use a control frame whose payload is more than 125 bytes
Attempted to use a frame whose payload is too large
Received an invalid frame
Received a masked frame from the server
ParseError(ParseError)
URL could not be parsed
URL has invalid WebSocket scheme (use "ws" or "wss")
URL host is invalid or missing
URL port is invalid
SocketAddrError(IoError)
Could not parse URL into SocketAddrs
Could not resolve the URL's domain
ReadError(IoError)
Error reading from WebSocket
WriteError(IoError)
Error writing to WebSocket
Trait Implementations
impl Debug for WebSocketError
[src]
impl Display for WebSocketError
[src]
impl Error for WebSocketError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for WebSocketError
impl Send for WebSocketError
impl Sync for WebSocketError
impl Unpin for WebSocketError
impl !UnwindSafe for WebSocketError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,