fn code(&self) -> u32 {
        match self {
            InventoryHash::Error => 0,
            InventoryHash::Tx(_tx_id) => 1,
            InventoryHash::Block(_hash) => 2,
            InventoryHash::FilteredBlock(_hash) => 3,
            InventoryHash::Wtx(_wtx_id) => 5,
        }
    }
/// Returns the serialized Zcash network protocol code for the current variant.
Returns the serialized Zcash network protocol code for the current variant.
Returns the serialized Zcash network protocol code for the current variant .
fn code(&self) -> u32 {
        match self {
            InventoryHash::Error => 0,
            InventoryHash::Tx(_tx_id) => 1,
            InventoryHash::Block(_hash) => 2,
            InventoryHash::FilteredBlock(_hash) => 3,
            InventoryHash::Wtx(_wtx_id) => 5,
        }
    }
fn code ( & self ) -> u32 { match self { InventoryHash :: Error => 0 , InventoryHash :: Tx ( _tx_id ) => 1 , InventoryHash :: Block ( _hash ) => 2 , InventoryHash :: FilteredBlock ( _hash ) => 3 , InventoryHash :: Wtx ( _wtx_id ) => 5 , } }
Returns the serialized Zcash network protocol code for the current variant.
Returns the serialized Zcash network protocol code for the current variant .
&self