pub enum LinkHandshakeError {
InvalidIdentity,
PeerNotTheExpectedMachine,
Framing(String),
Setup(String),
NotFinished,
}Expand description
Why a handshake did not complete.
Variants§
InvalidIdentity
A recorded public key that is not an Ed25519 point.
PeerNotTheExpectedMachine
The peer’s message did not authenticate against the expected static key: a third machine, or a key derived some other way.
Framing(String)
A message or buffer outside Noise’s bounds.
Setup(String)
The handshake pattern or keys could not be set up.
NotFinished
Transport was requested before the handshake finished.
Trait Implementations§
Source§impl Debug for LinkHandshakeError
impl Debug for LinkHandshakeError
Source§impl Display for LinkHandshakeError
impl Display for LinkHandshakeError
impl Eq for LinkHandshakeError
Source§impl Error for LinkHandshakeError
impl Error for LinkHandshakeError
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<LinkHandshakeError> for LinkDialError
impl From<LinkHandshakeError> for LinkDialError
Source§fn from(source: LinkHandshakeError) -> Self
fn from(source: LinkHandshakeError) -> Self
Converts to this type from the input type.
Source§impl From<LinkHandshakeError> for PunchError
impl From<LinkHandshakeError> for PunchError
Source§fn from(source: LinkHandshakeError) -> Self
fn from(source: LinkHandshakeError) -> Self
Converts to this type from the input type.
Source§impl From<LinkHandshakeError> for RelayOpenError
impl From<LinkHandshakeError> for RelayOpenError
Source§fn from(source: LinkHandshakeError) -> Self
fn from(source: LinkHandshakeError) -> Self
Converts to this type from the input type.
Source§impl From<LinkHandshakeError> for UdpError
impl From<LinkHandshakeError> for UdpError
Source§fn from(source: LinkHandshakeError) -> Self
fn from(source: LinkHandshakeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LinkHandshakeError
impl PartialEq for LinkHandshakeError
impl StructuralPartialEq for LinkHandshakeError
Auto Trait Implementations§
impl Freeze for LinkHandshakeError
impl RefUnwindSafe for LinkHandshakeError
impl Send for LinkHandshakeError
impl Sync for LinkHandshakeError
impl Unpin for LinkHandshakeError
impl UnsafeUnpin for LinkHandshakeError
impl UnwindSafe for LinkHandshakeError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.