Enum bitcoin::network::message::NetworkMessage [−][src]
pub enum NetworkMessage {}Show variants
Version(VersionMessage), Verack, Addr(Vec<(u32, Address)>), Inv(Vec<Inventory>), GetData(Vec<Inventory>), NotFound(Vec<Inventory>), GetBlocks(GetBlocksMessage), GetHeaders(GetHeadersMessage), MemPool, Tx(Transaction), Block(Block), Headers(Vec<BlockHeader>), SendHeaders, GetAddr, Ping(u64), Pong(u64), GetCFilters(GetCFilters), CFilter(CFilter), GetCFHeaders(GetCFHeaders), CFHeaders(CFHeaders), GetCFCheckpt(GetCFCheckpt), CFCheckpt(CFCheckpt), Alert(Vec<u8>), Reject(Reject), FeeFilter(i64), WtxidRelay, AddrV2(Vec<AddrV2Message>), SendAddrV2, Unknown { command: CommandString, payload: Vec<u8>, },
A Network message payload. Proper documentation is available on at Bitcoin Wiki: Protocol Specification
Variants
Version(VersionMessage)
version
verack
addr
inv
getdata
notfound
GetBlocks(GetBlocksMessage)
getblocks
GetHeaders(GetHeadersMessage)
getheaders
mempool
Tx(Transaction)
tx
Block(Block)
block
Headers(Vec<BlockHeader>)
headers
sendheaders
getaddr
Ping(u64)
ping
Pong(u64)
pong
GetCFilters(GetCFilters)
BIP157 getcfilters
CFilter(CFilter)
BIP157 cfilter
GetCFHeaders(GetCFHeaders)
BIP157 getcfheaders
CFHeaders(CFHeaders)
BIP157 cfheaders
GetCFCheckpt(GetCFCheckpt)
BIP157 getcfcheckpt
CFCheckpt(CFCheckpt)
BIP157 cfcheckpt
alert
Reject(Reject)
reject
FeeFilter(i64)
feefilter
wtxidrelay
AddrV2(Vec<AddrV2Message>)
addrv2
sendaddrv2
Any other message.
Show fields
Fields of Unknown
Implementations
impl NetworkMessage
[src]
impl NetworkMessage
[src]pub fn cmd(&self) -> &'static str
[src]
Return the message command as a static string reference.
This returns "unknown"
for NetworkMessage::Unknown,
regardless of the actual command in the unknown message.
Use the Self::command method to get the command for unknown messages.
pub fn command(&self) -> CommandString
[src]
Return the CommandString for the message command.
Trait Implementations
impl Clone for NetworkMessage
[src]
impl Clone for NetworkMessage
[src]fn clone(&self) -> NetworkMessage
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<NetworkMessage> for NetworkMessage
[src]
impl PartialEq<NetworkMessage> for NetworkMessage
[src]