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
Tuple Fields of Transaction
0: Txid
Block(BlockHash)
Block
Tuple Fields of Block
0: BlockHash
WTx(Wtxid)
Witness Transaction by Wtxid
Tuple Fields of WTx
0: Wtxid
WitnessTransaction(Txid)
Witness Transaction
Tuple Fields of WitnessTransaction
0: Txid
WitnessBlock(BlockHash)
Witness Block
Tuple Fields of WitnessBlock
0: BlockHash
Unknown inventory type
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