pub enum P2PMessageID {
Hello = 0,
Disconnect = 1,
Ping = 2,
Pong = 3,
}Expand description
Message IDs for p2p subprotocol messages.
Variants§
Hello = 0
Message ID for the P2PMessage::Hello message.
Disconnect = 1
Message ID for the P2PMessage::Disconnect message.
Ping = 2
Message ID for the P2PMessage::Ping message.
Pong = 3
Message ID for the P2PMessage::Pong message.
Trait Implementations§
Source§impl Clone for P2PMessageID
impl Clone for P2PMessageID
impl Copy for P2PMessageID
Source§impl Debug for P2PMessageID
impl Debug for P2PMessageID
impl Eq for P2PMessageID
Source§impl From<P2PMessage> for P2PMessageID
impl From<P2PMessage> for P2PMessageID
Source§fn from(msg: P2PMessage) -> Self
fn from(msg: P2PMessage) -> Self
Converts to this type from the input type.
Source§impl PartialEq for P2PMessageID
impl PartialEq for P2PMessageID
impl StructuralPartialEq for P2PMessageID
Auto Trait Implementations§
impl Freeze for P2PMessageID
impl RefUnwindSafe for P2PMessageID
impl Send for P2PMessageID
impl Sync for P2PMessageID
impl Unpin for P2PMessageID
impl UnsafeUnpin for P2PMessageID
impl UnwindSafe for P2PMessageID
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Hello: 0 bytesDisconnect: 0 bytesPing: 0 bytesPong: 0 bytes