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<'arbitrary> Arbitrary<'arbitrary> for LevinCommand
impl<'arbitrary> Arbitrary<'arbitrary> for LevinCommand
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§impl Clone for LevinCommand
impl Clone for LevinCommand
Source§fn clone(&self) -> LevinCommand
fn clone(&self) -> LevinCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LevinCommand
Source§impl Debug for LevinCommand
impl Debug for LevinCommand
Source§impl Display for LevinCommand
impl Display for LevinCommand
impl Eq 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
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 UnsafeUnpin 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
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
Checks if this value is equivalent to the given key. Read more
§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<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: 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