Trait VerifiedTransaction

Source
pub trait VerifiedTransaction: Debug {
    type Hash: Debug + LowerHex + Eq + Clone + Hash;
    type Sender: Debug + Eq + Clone + Hash + Send;

    // Required methods
    fn hash(&self) -> &Self::Hash;
    fn mem_usage(&self) -> usize;
    fn sender(&self) -> &Self::Sender;
}
Expand description

Already verified transaction that can be safely queued.

Required Associated Types§

Source

type Hash: Debug + LowerHex + Eq + Clone + Hash

Transaction hash type.

Source

type Sender: Debug + Eq + Clone + Hash + Send

Transaction sender type.

Required Methods§

Source

fn hash(&self) -> &Self::Hash

Transaction hash

Source

fn mem_usage(&self) -> usize

Memory usage

Source

fn sender(&self) -> &Self::Sender

Transaction sender

Implementors§