pub enum KeyExchangeError {
NonUtf8,
Malformed,
NotLowerHex,
HexDecode,
}Expand description
Key exchange parse/encode error.
Variants§
NonUtf8
Body is not UTF-8.
Malformed
Syntax is malformed.
NotLowerHex
Number is not lower-case hex.
HexDecode
Hex decoding failed.
Trait Implementations§
Source§impl Debug for KeyExchangeError
impl Debug for KeyExchangeError
Source§impl Display for KeyExchangeError
impl Display for KeyExchangeError
Source§impl Error for KeyExchangeError
impl Error for KeyExchangeError
1.30.0 · 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<KeyExchangeError> for ProcessError
impl From<KeyExchangeError> for ProcessError
Source§fn from(source: KeyExchangeError) -> Self
fn from(source: KeyExchangeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeyExchangeError
impl RefUnwindSafe for KeyExchangeError
impl Send for KeyExchangeError
impl Sync for KeyExchangeError
impl Unpin for KeyExchangeError
impl UnsafeUnpin for KeyExchangeError
impl UnwindSafe for KeyExchangeError
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