Enum noise::error::HandshakeError
source · pub enum HandshakeError {
UnexpectedVersion {
version: u8,
act: u8,
},
InvalidEphemeralPubkey,
InvalidInitiatorPubkey,
InvalidActLen {
act: u8,
expected: usize,
found: usize,
},
Encryption(EncryptionError),
Complete,
}
Variants§
UnexpectedVersion
unexpected version of noise protocol {version} in act {act} of handshake.
InvalidEphemeralPubkey
invalid remote ephemeral pubkey provided during noise handshake.
InvalidInitiatorPubkey
the initiator has provided an invalid pubkey
InvalidActLen
invalid length of handshake act {act}: expected {expected}, provided {found}
Encryption(EncryptionError)
Complete
noise handshake is complete, nothing to process.
Trait Implementations§
source§impl Clone for HandshakeError
impl Clone for HandshakeError
source§fn clone(&self) -> HandshakeError
fn clone(&self) -> HandshakeError
Returns a copy 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 HandshakeError
impl Debug for HandshakeError
source§impl Display for HandshakeError
impl Display for HandshakeError
source§impl Error for HandshakeError
impl Error for HandshakeError
1.30.0 · 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()
source§impl From<EncryptionError> for HandshakeError
impl From<EncryptionError> for HandshakeError
source§fn from(v: EncryptionError) -> Self
fn from(v: EncryptionError) -> Self
Converts to this type from the input type.
source§impl From<Error> for HandshakeError
impl From<Error> for HandshakeError
source§impl From<HandshakeError> for String
impl From<HandshakeError> for String
source§fn from(err: HandshakeError) -> Self
fn from(err: HandshakeError) -> Self
Converts to this type from the input type.
source§impl PartialEq for HandshakeError
impl PartialEq for HandshakeError
source§fn eq(&self, other: &HandshakeError) -> bool
fn eq(&self, other: &HandshakeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HandshakeError
impl StructuralPartialEq for HandshakeError
Auto Trait Implementations§
impl Freeze for HandshakeError
impl RefUnwindSafe for HandshakeError
impl Send for HandshakeError
impl Sync for HandshakeError
impl Unpin for HandshakeError
impl UnwindSafe for HandshakeError
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