Enum network_clique::protocols::handshake::HandshakeError
source · pub enum HandshakeError<PK: PublicKey> {
SendError(SendError),
ReceiveError(ReceiveError),
SignatureError,
ChallengeError(PK, PK),
TimedOut,
}
Expand description
Handshake error.
Variants§
SendError(SendError)
Send error.
ReceiveError(ReceiveError)
Receive error.
SignatureError
Signature error.
ChallengeError(PK, PK)
Challenge contains invalid peer id.
TimedOut
Timeout.
Trait Implementations§
source§impl<PK: PublicKey> Display for HandshakeError<PK>
impl<PK: PublicKey> Display for HandshakeError<PK>
source§impl<PK: PublicKey> From<HandshakeError<PK>> for ProtocolError<PK>
impl<PK: PublicKey> From<HandshakeError<PK>> for ProtocolError<PK>
source§fn from(e: HandshakeError<PK>) -> Self
fn from(e: HandshakeError<PK>) -> Self
Converts to this type from the input type.
source§impl<PK: PublicKey> From<ReceiveError> for HandshakeError<PK>
impl<PK: PublicKey> From<ReceiveError> for HandshakeError<PK>
source§fn from(e: ReceiveError) -> Self
fn from(e: ReceiveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<PK> !RefUnwindSafe for HandshakeError<PK>
impl<PK> Send for HandshakeError<PK>
impl<PK> Sync for HandshakeError<PK>
impl<PK> Unpin for HandshakeError<PK>where
PK: Unpin,
impl<PK> !UnwindSafe for HandshakeError<PK>
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