Type Alias WaitQueue

Source
pub type WaitQueue = DoublyLinkedList<Waker>;
Expand description

A helper definition of a wait queue.

Aliased Type§

struct WaitQueue { /* private fields */ }

Implementations

Source§

impl<T> DoublyLinkedList<T>

Source

pub const fn new() -> Self

Create a new linked list.

Source§

impl<T: Clone> DoublyLinkedList<T>

Source

pub fn pop(&self) -> Option<T>

Pop the first element in the queue.

Source

pub unsafe fn push(&self, link: Pin<&Link<T>>)

Put an element at the back of the queue.

§Safety

The link must live until it is removed from the queue.

Source

pub fn is_empty(&self) -> bool

Check if the queue is empty.

Trait Implementations

Source§

impl<T> Default for DoublyLinkedList<T>

Source§

fn default() -> Self

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