pub enum NetworkMessage {
Show 29 variants
Version(VersionMessage),
VerAck,
Addr(AddrMessage),
AddrV2(AddrV2Message),
Inv(InvMessage),
GetData(GetDataMessage),
GetHeaders(GetHeadersMessage),
Headers(HeadersMessage),
Block(Arc<Block>),
Tx(Arc<Transaction>),
Ping(PingMessage),
Pong(PongMessage),
MemPool,
FeeFilter(FeeFilterMessage),
GetBlocks(GetBlocksMessage),
GetAddr,
NotFound(NotFoundMessage),
Reject(RejectMessage),
SendHeaders,
SendCmpct(SendCmpctMessage),
CmpctBlock(CmpctBlockMessage),
GetBlockTxn(GetBlockTxnMessage),
BlockTxn(BlockTxnMessage),
GetUTXOSet(GetUTXOSetMessage),
UTXOSet(UTXOSetMessage),
GetFilteredBlock(GetFilteredBlockMessage),
FilteredBlock(FilteredBlockMessage),
GetBanList(GetBanListMessage),
BanList(BanListMessage),
}Expand description
NetworkMessage: Bitcoin P2P protocol message types
Network message types for Bitcoin P2P protocol
Variants§
Version(VersionMessage)
VerAck
Addr(AddrMessage)
AddrV2(AddrV2Message)
Inv(InvMessage)
GetData(GetDataMessage)
GetHeaders(GetHeadersMessage)
Headers(HeadersMessage)
Block(Arc<Block>)
Tx(Arc<Transaction>)
Ping(PingMessage)
Pong(PongMessage)
MemPool
FeeFilter(FeeFilterMessage)
GetBlocks(GetBlocksMessage)
GetAddr
NotFound(NotFoundMessage)
Reject(RejectMessage)
SendHeaders
SendCmpct(SendCmpctMessage)
CmpctBlock(CmpctBlockMessage)
GetBlockTxn(GetBlockTxnMessage)
BlockTxn(BlockTxnMessage)
GetUTXOSet(GetUTXOSetMessage)
UTXOSet(UTXOSetMessage)
GetFilteredBlock(GetFilteredBlockMessage)
FilteredBlock(FilteredBlockMessage)
GetBanList(GetBanListMessage)
BanList(BanListMessage)
Trait Implementations§
Source§impl Clone for NetworkMessage
impl Clone for NetworkMessage
Source§fn clone(&self) -> NetworkMessage
fn clone(&self) -> NetworkMessage
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 moreSource§impl Debug for NetworkMessage
impl Debug for NetworkMessage
Source§impl PartialEq for NetworkMessage
impl PartialEq for NetworkMessage
Source§fn eq(&self, other: &NetworkMessage) -> bool
fn eq(&self, other: &NetworkMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NetworkMessage
Auto Trait Implementations§
impl Freeze for NetworkMessage
impl RefUnwindSafe for NetworkMessage
impl Send for NetworkMessage
impl Sync for NetworkMessage
impl Unpin for NetworkMessage
impl UnsafeUnpin for NetworkMessage
impl UnwindSafe for NetworkMessage
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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