[−][src]Enum bitcoin::network::message::NetworkMessage
A Network message payload. Proper documentation is available on at Bitcoin Wiki: Protocol Specification
Variants
Version(VersionMessage)
version
Verack
verack
Addr(Vec<(u32, Address)>)
addr
Inv(Vec<Inventory>)
inv
GetData(Vec<Inventory>)
getdata
NotFound(Vec<Inventory>)
notfound
GetBlocks(GetBlocksMessage)
getblocks
GetHeaders(GetHeadersMessage)
getheaders
MemPool
mempool
Tx(Transaction)
tx
Block(Block)
block
Headers(Vec<BlockHeader>)
headers
SendHeaders
sendheaders
GetAddr
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(Vec<u8>)
alert
Reject(Reject)
reject
FeeFilter(i64)
feefilter
WtxidRelay
wtxidrelay
AddrV2(Vec<AddrV2Message>)
addrv2
SendAddrV2
sendaddrv2
Unknown
Any other message.
Fields of Unknown
Methods
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 [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]
fn clone(&self) -> NetworkMessage
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<NetworkMessage> for NetworkMessage
[src]
fn eq(&self, other: &NetworkMessage) -> bool
[src]
fn ne(&self, other: &NetworkMessage) -> bool
[src]
impl Eq for NetworkMessage
[src]
impl Debug for NetworkMessage
[src]
Auto Trait Implementations
impl Unpin for NetworkMessage
impl Sync for NetworkMessage
impl Send for NetworkMessage
impl UnwindSafe for NetworkMessage
impl RefUnwindSafe for NetworkMessage
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,