Struct tetsy_transaction_pool::scoring::ScoreWithRef[][src]

pub struct ScoreWithRef<T, S> {
    pub score: S,
    pub transaction: Transaction<T>,
}

A score with a reference to the transaction.

Fields

score: S

Score

transaction: Transaction<T>

Shared transaction

Implementations

impl<T, S> ScoreWithRef<T, S>[src]

pub fn new(score: S, transaction: Transaction<T>) -> Self[src]

Creates a new ScoreWithRef

Trait Implementations

impl<T, S: Clone> Clone for ScoreWithRef<T, S>[src]

impl<T: Debug, S: Debug> Debug for ScoreWithRef<T, S>[src]

impl<S: Ord, T> Eq for ScoreWithRef<T, S>[src]

impl<S: Ord, T> Ord for ScoreWithRef<T, S>[src]

impl<S: Ord, T> PartialEq<ScoreWithRef<T, S>> for ScoreWithRef<T, S>[src]

impl<S: Ord, T> PartialOrd<ScoreWithRef<T, S>> for ScoreWithRef<T, S>[src]

Auto Trait Implementations

impl<T, S> RefUnwindSafe for ScoreWithRef<T, S> where
    S: RefUnwindSafe,
    T: RefUnwindSafe
[src]

impl<T, S> Send for ScoreWithRef<T, S> where
    S: Send,
    T: Send + Sync
[src]

impl<T, S> Sync for ScoreWithRef<T, S> where
    S: Sync,
    T: Send + Sync
[src]

impl<T, S> Unpin for ScoreWithRef<T, S> where
    S: Unpin
[src]

impl<T, S> UnwindSafe for ScoreWithRef<T, S> where
    S: UnwindSafe,
    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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.