pub enum Error {
Show 14 variants
Io(Error),
Tls(Error),
TlsHandshake(String),
InvalidDnsName(String),
Config(String),
Protocol(String),
Wire(ProtoError),
LimitExceeded(String),
InvalidLimit {
field: &'static str,
reason: String,
},
Timeout(&'static str),
StreamIdExhausted,
ConnectionClosed,
StreamReset(u64),
EndpointRole(&'static str),
}Expand description
Errors returned by muxtls APIs and runtime.
Variants§
Io(Error)
Tls(Error)
TlsHandshake(String)
InvalidDnsName(String)
Config(String)
Protocol(String)
Wire(ProtoError)
LimitExceeded(String)
InvalidLimit
Fields
§
field: &'static strName of the invalid crate::Limits field.
Timeout(&'static str)
StreamIdExhausted
ConnectionClosed
StreamReset(u64)
EndpointRole(&'static str)
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<ProtoError> for Error
impl From<ProtoError> for Error
Source§fn from(source: ProtoError) -> Self
fn from(source: ProtoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Forget for Error
impl Freeze for Errorwhere
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<ContentType>: Freeze,
PhantomData<HandshakeType>: Freeze,
&'static str: Freeze,
PhantomData<EchConfigPayload>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<AlgorithmIdentifier>: Freeze,
PhantomData<String>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<ExtendedKeyPurpose>: Freeze,
*const ArcInner<dyn Error + Send + Sync> is !null: Freeze,
PhantomData<ArcInner<dyn Error + Send + Sync>>: Freeze,
impl Move for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Errorwhere
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<ContentType>: UnsafeUnpin,
PhantomData<HandshakeType>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<EchConfigPayload>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<AlgorithmIdentifier>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<ExtendedKeyPurpose>: UnsafeUnpin,
*const ArcInner<dyn Error + Send + Sync> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Error + Send + Sync>>: UnsafeUnpin,
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