pub enum ParamError {
TooFewParameters,
InvalidProtocol,
InvalidHandshake,
InvalidKeyType,
InvalidStrobeVersion,
InvalidEphemeralKeys,
InvalidChannelDuplex,
InvalidTransportOrder,
}Expand description
Errors that can happen from invalid protocol strings
Variants§
TooFewParameters
Too few parameters in the protocol string
InvalidProtocol
Invalid protocol name, must be “Noise”
InvalidHandshake
Invalid, or unsuported, handshake pattern
InvalidKeyType
Invalid, or unsupported, key type
InvalidStrobeVersion
Invalid STROBE protocol version
InvalidEphemeralKeys
Invalid ephemeral key setup
InvalidChannelDuplex
Invalid duplex mode for this channel
InvalidTransportOrder
Invalid transport order for this channel
Trait Implementations§
Source§impl Clone for ParamError
impl Clone for ParamError
Source§fn clone(&self) -> ParamError
fn clone(&self) -> ParamError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParamError
impl Debug for ParamError
Source§impl Display for ParamError
impl Display for ParamError
Source§impl Error for ParamError
impl Error for ParamError
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<ParamError> for Error
impl From<ParamError> for Error
Source§fn from(source: ParamError) -> Self
fn from(source: ParamError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParamError
impl PartialEq for ParamError
impl Copy for ParamError
impl StructuralPartialEq for ParamError
Auto Trait Implementations§
impl Freeze for ParamError
impl RefUnwindSafe for ParamError
impl Send for ParamError
impl Sync for ParamError
impl Unpin for ParamError
impl UnwindSafe for ParamError
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