Struct bitcoin::network::message::RawNetworkMessage [−][src]
pub struct RawNetworkMessage {
pub magic: u32,
pub payload: NetworkMessage,
}Expand description
A Network message
Fields
magic: u32Magic bytes to identify the network these messages are meant for
payload: NetworkMessageThe 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 RawNetworkMessageimpl Send for RawNetworkMessageimpl Sync for RawNetworkMessageimpl Unpin for RawNetworkMessageimpl UnwindSafe for RawNetworkMessageBlanket Implementations
Mutably borrows from an owned value. Read more