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

pub struct Chain { /* fields omitted */ }

A lock-free stack of fibers.

Implementations

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 Send for Chain

impl Sync for Chain

impl Unpin for Chain

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

type Output = T

Should always be Self

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> 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.