[][src]Struct networking::MessageHeader

pub struct MessageHeader { /* fields omitted */ }

A Bitcoin Wire Protocol Message Header.

This struct is encapsulated by the BitcoinCodec, which automatically creates and sends Message Headers at serialization time. Most users should not need to interact with this struct, but it is is exported as a convencience to those who don't wish to use the Codec.

Implementations

impl MessageHeader[src]

pub fn deserialize<T>(
    target: &mut T,
    expected_magic: u32
) -> Result<MessageHeader, DeserializationError> where
    T: Read
[src]

pub fn get_command(&self) -> Command[src]

pub fn get_payload_size(&self) -> usize[src]

pub fn len() -> usize[src]

Trait Implementations

impl Debug for MessageHeader[src]

impl Deserializable for MessageHeader[src]

Auto Trait Implementations

impl RefUnwindSafe for MessageHeader

impl Send for MessageHeader

impl Sync for MessageHeader

impl Unpin for MessageHeader

impl UnwindSafe for MessageHeader

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.