Struct tari_common_types::waiting_requests::WaitingRequests[][src]

pub struct WaitingRequests<T> { /* fields omitted */ }

WaitingRequests is used to keep track of a set of WaitingRequests.

Implementations

impl<T> WaitingRequests<T>[src]

pub fn new() -> Self[src]

Create a new set of waiting requests.

pub async fn insert(&self, key: RequestKey, reply_tx: OneshotSender<T>)[src]

Insert a new waiting request.

pub async fn remove(
    &self,
    key: RequestKey
) -> Option<(OneshotSender<T>, Instant)>
[src]

Remove the waiting request corresponding to the provided key.

Trait Implementations

impl<T> Clone for WaitingRequests<T>[src]

impl<T> Default for WaitingRequests<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for WaitingRequests<T>[src]

impl<T> Send for WaitingRequests<T> where
    T: Send
[src]

impl<T> Sync for WaitingRequests<T> where
    T: Send
[src]

impl<T> Unpin for WaitingRequests<T>[src]

impl<T> !UnwindSafe for WaitingRequests<T>[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, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

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

impl<T> FromBits<T> for T

impl<T> FromCast<T> for T

impl<T> InitializableFromZeroed for T where
    T: Default

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

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

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