pub struct WakerList<T> { /* private fields */ }

Implementations

Register a waker

Safety: This function is only safe as long as node is guaranteed to get removed from the list before it gets moved or dropped.

Removes a node from the LinkedList.

Wake a waiter, and remove it.

Returns false if the list is empty.

Wake all waiter, and remove it.

returns the number of had waked

Retains only the elements specified by the predicate.

In other words, remove all elements e such that f(&e) returns false. This method operates in place, visiting each element exactly once in the original order, but not preserves the order of the retained elements.

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.