Enum libp2p_websocket::error::Error
source · pub enum Error<E> {
Transport(E),
Tls(Error),
Handshake(Box<dyn Error + Send + Sync>),
TooManyRedirects,
InvalidMultiaddr(Multiaddr),
InvalidRedirectLocation,
Base(Box<dyn Error + Send + Sync>),
}
Expand description
Error in WebSockets.
Variants§
Transport(E)
Error in the transport layer underneath.
Tls(Error)
A TLS related error.
Handshake(Box<dyn Error + Send + Sync>)
Websocket handshake error.
TooManyRedirects
The configured maximum of redirects have been made.
InvalidMultiaddr(Multiaddr)
A multi-address is not supported.
InvalidRedirectLocation
The location header URL was invalid.
Base(Box<dyn Error + Send + Sync>)
Websocket base framing error.
Trait Implementations§
source§impl<E: Error + 'static> Error for Error<E>
impl<E: Error + 'static> Error for Error<E>
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()