pub enum ConnectionError {
Endpoint(EndpointError),
Codec(CodecError),
Transport(TransportError),
VarInt(VarIntError),
NoControlStream,
UnexpectedEnd,
StreamFinished,
InvalidAddress(String),
TlsConfig(String),
}Expand description
Errors from the draft-11 connection layer.
Variants§
Endpoint(EndpointError)
Endpoint state machine error.
Codec(CodecError)
Wire codec error.
Transport(TransportError)
Transport-level error.
VarInt(VarIntError)
Variable-length integer decoding error.
NoControlStream
Control stream was not opened.
UnexpectedEnd
Stream ended before a complete message was read.
StreamFinished
Stream was finished by the peer.
InvalidAddress(String)
Invalid server address string.
TlsConfig(String)
TLS configuration error.
Trait Implementations§
Source§impl Debug for ConnectionError
impl Debug for ConnectionError
Source§impl Display for ConnectionError
impl Display for ConnectionError
Source§impl Error for ConnectionError
impl Error for ConnectionError
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<CodecError> for ConnectionError
impl From<CodecError> for ConnectionError
Source§impl From<EndpointError> for ConnectionError
impl From<EndpointError> for ConnectionError
Source§fn from(source: EndpointError) -> Self
fn from(source: EndpointError) -> Self
Converts to this type from the input type.
Source§impl From<TransportError> for ConnectionError
impl From<TransportError> for ConnectionError
Source§fn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConnectionError
impl RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl UnsafeUnpin for ConnectionError
impl UnwindSafe for ConnectionError
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