pub struct WaitList<L: Lock, I, O> {
    pub lock: L,
    /* private fields */
}
Expand description

An intrusive linked list of futures.

Fields

lock: L

The lock used by the WaitList.

This is used for internal synchronization, but you can also protect arbitrary state useful to you in here.

Implementations

Create a new empty WaitList.

Take an exclusive lock on the contents of this list.

This function should not be called recursively as it may deadlock, panic or abort.

Take a shared lock on the contents of this list.

If your chosen lock type only supports exclusive locks, this will take an exclusive lock instead.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.