[][src]Struct drone_core::fib::Chain

pub struct Chain { /* fields omitted */ }

A lock-free stack of fibers.

Methods

impl Chain[src]

pub const fn new() -> Self[src]

Creates an empty fiber chain.

pub fn add<F: FiberRoot>(&self, fib: F)[src]

Adds the fiber fib first to the chain.

pub fn is_empty(&self) -> bool[src]

Returns true if the chain contains no fibers.

pub unsafe fn drain(&self)[src]

Advances fibers, removing completed ones.

Safety

This method is not reentrant.

Auto Trait Implementations

impl Unpin for Chain

impl Send for Chain

impl Sync for Chain

Blanket Implementations

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

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> Into<U> for T where
    U: From<T>, 
[src]

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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]