Struct bitcoin::network::message_blockdata::Inventory [] [src]

pub struct Inventory {
    pub inv_type: InvType,
    pub hash: Sha256dHash,
}

An inventory object --- a reference to a Bitcoin object

Fields

inv_type: InvType

The type of object that is referenced

hash: Sha256dHash

The object's hash

Trait Implementations

impl Debug for Inventory
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Inventory
[src]

fn clone(&self) -> Inventory

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Eq for Inventory
[src]

impl PartialEq for Inventory
[src]

fn eq(&self, __arg_0: &Inventory) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Inventory) -> bool

This method tests for !=.

impl<S: SimpleEncoder> ConsensusEncodable<S> for Inventory
[src]

fn consensus_encode(&self, s: &mut S) -> Result<(), S::Error>

Encode an object with a well-defined format

impl<D: SimpleDecoder> ConsensusDecodable<D> for Inventory
[src]

fn consensus_decode(d: &mut D) -> Result<Inventory, D::Error>

Decode an object with a well-defined format