Enum zebra_network::protocol::external::inv::InventoryHash[][src]

pub enum InventoryHash {

An inventory hash which refers to some advertised or requested data.

Bitcoin calls this an "inventory vector" but it is just a typed hash, not a container, so we do not use that term to avoid confusion with Vec<T>.

Bitcoin reference



An error.

The Bitcoin wiki just says "Any data of with this number may be ignored", so we don't include a typed hash.


A hash of a transaction.


A hash of a block.


A hash of a filtered block.

The Bitcoin wiki says: Hash of a block header, but only to be used in getdata message. Indicates the reply should be a merkleblock message rather than a block message; this only works if a bloom filter has been set.

Trait Implementations

impl Clone for InventoryHash[src]

impl Copy for InventoryHash[src]

impl Debug for InventoryHash[src]

impl Eq for InventoryHash[src]

impl From<Hash> for InventoryHash[src]

impl From<Hash> for InventoryHash[src]

impl Hash for InventoryHash[src]

impl PartialEq<InventoryHash> for InventoryHash[src]

impl StructuralEq for InventoryHash[src]

impl StructuralPartialEq for InventoryHash[src]

impl ZcashDeserialize for InventoryHash[src]

impl ZcashSerialize for InventoryHash[src]

Auto Trait Implementations

impl RefUnwindSafe for InventoryHash[src]

impl Send for InventoryHash[src]

impl Sync for InventoryHash[src]

impl Unpin for InventoryHash[src]

impl UnwindSafe for InventoryHash[src]

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Conv for T

impl<T> Conv for T

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized

impl<T> FmtForward for T

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]