DedupPayload

Trait DedupPayload 

Source
pub trait DedupPayload {
    type Value;

    // Required methods
    fn is_empty(&self) -> bool;
    fn len(&self) -> usize;
    fn dedup(self) -> PartiallyValidData<Self::Value>;
}
Available on crate feature network only.
Expand description

Validation pass that checks for unique transaction hashes.

Required Associated Types§

Source

type Value

Value type in PartiallyValidData map.

Required Methods§

Source

fn is_empty(&self) -> bool

The payload contains no entries.

Source

fn len(&self) -> usize

Returns the number of entries.

Source

fn dedup(self) -> PartiallyValidData<Self::Value>

Consumes self, returning an iterator over hashes in payload.

Implementors§