Enum network_clique::protocols::ProtocolError
source · pub enum ProtocolError<PK: PublicKey> {
HandshakeError(HandshakeError<PK>),
SendError(SendError),
ReceiveError(ReceiveError),
CardiacArrest,
NoParentConnection,
NoUserConnection,
NotAuthorized,
SendTimeout,
}
Expand description
Protocol error.
Variants§
HandshakeError(HandshakeError<PK>)
Error during performing a handshake.
SendError(SendError)
Sending failed.
ReceiveError(ReceiveError)
Receiving failed.
CardiacArrest
Heartbeat stopped.
NoParentConnection
Channel to the parent service closed.
NoUserConnection
Data channel closed.
NotAuthorized
Authorization error.
SendTimeout
Send operation took too long
Trait Implementations§
source§impl<PK: PublicKey> Display for ProtocolError<PK>
impl<PK: PublicKey> Display for ProtocolError<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<ProtocolError<PK>> for IncomingError<PK>
impl<PK: PublicKey> From<ProtocolError<PK>> for IncomingError<PK>
source§fn from(e: ProtocolError<PK>) -> Self
fn from(e: ProtocolError<PK>) -> Self
Converts to this type from the input type.
source§impl<PK: PublicKey> From<ReceiveError> for ProtocolError<PK>
impl<PK: PublicKey> From<ReceiveError> for ProtocolError<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 ProtocolError<PK>
impl<PK> Send for ProtocolError<PK>
impl<PK> Sync for ProtocolError<PK>
impl<PK> Unpin for ProtocolError<PK>where
PK: Unpin,
impl<PK> !UnwindSafe for ProtocolError<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