tokio::sync::notify

Type Alias GuardedWaitList

Source
type GuardedWaitList = GuardedLinkedList<Waiter, <Waiter as Link>::Target>;

Aliased Type§

struct GuardedWaitList {
    guard: NonNull<Waiter>,
    _marker: PhantomData<*const Waiter>,
}

Fields§

§guard: NonNull<Waiter>

Pointer to the guard node.

§_marker: PhantomData<*const Waiter>

Node type marker.

Implementations

Source§

impl<L: Link> GuardedLinkedList<L, L::Target>

Source

fn tail(&self) -> Option<NonNull<L::Target>>

Source

pub(crate) fn pop_back(&mut self) -> Option<L::Handle>

Removes the last element from a list and returns it, or None if it is empty.