Enum cuprate_wire::p2p::LevinCommand
source · pub enum LevinCommand {
Show 14 variants
Handshake,
TimedSync,
Ping,
SupportFlags,
NewBlock,
NewTransactions,
GetObjectsRequest,
GetObjectsResponse,
ChainRequest,
ChainResponse,
NewFluffyBlock,
FluffyMissingTxsRequest,
GetTxPoolCompliment,
Unknown(u32),
}Variants§
Handshake
TimedSync
Ping
SupportFlags
NewBlock
NewTransactions
GetObjectsRequest
GetObjectsResponse
ChainRequest
ChainResponse
NewFluffyBlock
FluffyMissingTxsRequest
GetTxPoolCompliment
Unknown(u32)
Trait Implementations§
source§impl Clone for LevinCommand
impl Clone for LevinCommand
source§fn clone(&self) -> LevinCommand
fn clone(&self) -> LevinCommand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for LevinCommand
impl Debug for LevinCommand
source§impl Display for LevinCommand
impl Display for LevinCommand
source§impl From<LevinCommand> for u32
impl From<LevinCommand> for u32
source§fn from(value: LevinCommand) -> Self
fn from(value: LevinCommand) -> Self
Converts to this type from the input type.
source§impl From<u32> for LevinCommand
impl From<u32> for LevinCommand
source§impl LevinCommand for LevinCommand
impl LevinCommand for LevinCommand
source§fn bucket_size_limit(&self) -> u64
fn bucket_size_limit(&self) -> u64
Returns the size limit for this command. Read more
source§fn is_handshake(&self) -> bool
fn is_handshake(&self) -> bool
Returns if this is a handshake
source§impl PartialEq for LevinCommand
impl PartialEq for LevinCommand
source§fn eq(&self, other: &LevinCommand) -> bool
fn eq(&self, other: &LevinCommand) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for LevinCommand
impl Eq for LevinCommand
impl StructuralPartialEq for LevinCommand
Auto Trait Implementations§
impl Freeze for LevinCommand
impl RefUnwindSafe for LevinCommand
impl Send for LevinCommand
impl Sync for LevinCommand
impl Unpin for LevinCommand
impl UnwindSafe for LevinCommand
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§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: 8 bytes
Size for each variant:
Handshake: 0 bytesTimedSync: 0 bytesPing: 0 bytesSupportFlags: 0 bytesNewBlock: 0 bytesNewTransactions: 0 bytesGetObjectsRequest: 0 bytesGetObjectsResponse: 0 bytesChainRequest: 0 bytesChainResponse: 0 bytesNewFluffyBlock: 0 bytesFluffyMissingTxsRequest: 0 bytesGetTxPoolCompliment: 0 bytesUnknown: 4 bytes