Struct bitcoin::network::message::RawNetworkMessage [−][src]
pub struct RawNetworkMessage { pub magic: u32, pub payload: NetworkMessage, }
Expand description
A Network message
Fields
magic: u32
Magic bytes to identify the network these messages are meant for
payload: NetworkMessage
The actual message data
Implementations
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.
Return the CommandString for the message command.
Trait Implementations
Decode an object with a well-defined format
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for RawNetworkMessage
impl Send for RawNetworkMessage
impl Sync for RawNetworkMessage
impl Unpin for RawNetworkMessage
impl UnwindSafe for RawNetworkMessage
Blanket Implementations
Mutably borrows from an owned value. Read more