Enum bitcoin::network::message_blockdata::Inventory [−][src]
pub enum Inventory { Error, Transaction(Txid), Block(BlockHash), WTx(Wtxid), WitnessTransaction(Txid), WitnessBlock(BlockHash), Unknown { inv_type: u32, hash: [u8; 32], }, }
Expand description
An inventory item.
Variants
Error — these inventories can be ignored
Transaction(Txid)
Transaction
Block(BlockHash)
Block
WTx(Wtxid)
Witness Transaction by Wtxid
WitnessTransaction(Txid)
Witness Transaction
WitnessBlock(BlockHash)
Witness Block
Unknown inventory type
Show fields
Trait Implementations
Decode an object with a well-defined format
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Inventory
impl UnwindSafe for Inventory
Blanket Implementations
Mutably borrows from an owned value. Read more