Enum network::peer::DisconnectReason [−][src]
pub enum DisconnectReason {
Requested,
ConnectionLost,
}Expand description
The reason for closing a connection.
For example, if the remote peer closed the connection or the connection was
lost, the disconnect reason will be ConnectionLost. In contrast, if the
PeerManager requested us to close this
connection, then the disconnect reason will be Requested.
Variants
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DisconnectReason
impl Send for DisconnectReason
impl Sync for DisconnectReason
impl Unpin for DisconnectReason
impl UnwindSafe for DisconnectReason
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.