Enum nakamoto_p2p::protocol::DisconnectReason [−][src]
Disconnect reason.
Variants
PeerMisbehaving(&'static str)
Peer is misbehaving.
PeerProtocolVersion(u32)
Peer protocol version is too old or too recent.
PeerServices(ServiceFlags)
Peer doesn't have the required services.
PeerHeight(Height)
Peer chain is too far behind.
PeerMagic(u32)
Peer magic is invalid.
Peer timed out.
Connection to self was detected.
Inbound connection limit reached.
ConnectionError(String)
Error with the underlying connection.
Peer was forced to disconnect by external command.
Implementations
impl DisconnectReason
[src]
pub fn is_transient(&self) -> bool
[src]
Check whether the disconnect reason is transient, ie. may no longer be applicable after some time.
Trait Implementations
impl Clone for DisconnectReason
[src]
fn clone(&self) -> DisconnectReason
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DisconnectReason
[src]
impl Display for DisconnectReason
[src]
impl Eq for DisconnectReason
[src]
impl PartialEq<DisconnectReason> for DisconnectReason
[src]
fn eq(&self, other: &DisconnectReason) -> bool
[src]
fn ne(&self, other: &DisconnectReason) -> bool
[src]
impl StructuralEq for DisconnectReason
[src]
impl StructuralPartialEq for DisconnectReason
[src]
Auto Trait Implementations
impl RefUnwindSafe for DisconnectReason
[src]
impl Send for DisconnectReason
[src]
impl Sync for DisconnectReason
[src]
impl Unpin for DisconnectReason
[src]
impl UnwindSafe for DisconnectReason
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,