Struct tetsy_transaction_pool::ReplaceTransaction[][src]

pub struct ReplaceTransaction<'a, T> {
    pub transaction: &'a Transaction<T>,
    pub pooled_by_sender: Option<&'a [Transaction<T>]>,
}

Encapsulates a transaction to be compared, along with pooled transactions from the same sender

Fields

transaction: &'a Transaction<T>

The transaction to be compared for replacement

pooled_by_sender: Option<&'a [Transaction<T>]>

Other transactions currently in the pool for the same sender

Implementations

impl<'a, T> ReplaceTransaction<'a, T>[src]

pub fn new(
    transaction: &'a Transaction<T>,
    pooled_by_sender: Option<&'a [Transaction<T>]>
) -> Self
[src]

Creates a new ReplaceTransaction

Methods from Deref<Target = Arc<T>>

Trait Implementations

impl<'a, T> Deref for ReplaceTransaction<'a, T>[src]

type Target = Transaction<T>

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for ReplaceTransaction<'a, T> where
    T: RefUnwindSafe
[src]

impl<'a, T> Send for ReplaceTransaction<'a, T> where
    T: Send + Sync
[src]

impl<'a, T> Sync for ReplaceTransaction<'a, T> where
    T: Send + Sync
[src]

impl<'a, T> Unpin for ReplaceTransaction<'a, T>[src]

impl<'a, T> UnwindSafe for ReplaceTransaction<'a, T> where
    T: RefUnwindSafe
[src]

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.