[][src]Enum drone_core::fib::FiberState

pub enum FiberState<Y, R> {
    Yielded(Y),
    Complete(R),
}

The result of a fiber resumption.

The enum is returned from the Fiber::resume method and indicates the possible return value of a fiber.

Variants

Yielded(Y)

The fiber suspended with a value.

Complete(R)

The fiber completed with a return value.

Implementations

impl<Y, R> FiberState<Y, R>[src]

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

Returns true if this is FiberState::Yielded.

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

Returns true if this is FiberState::Complete.

Trait Implementations

impl<Y: Clone, R: Clone> Clone for FiberState<Y, R>[src]

impl<Y: Copy, R: Copy> Copy for FiberState<Y, R>[src]

impl<Y: Debug, R: Debug> Debug for FiberState<Y, R>[src]

impl<Y: Eq, R: Eq> Eq for FiberState<Y, R>[src]

impl<Y, R> From<GeneratorState<Y, R>> for FiberState<Y, R>[src]

impl<Y: Hash, R: Hash> Hash for FiberState<Y, R>[src]

impl<Y: Ord, R: Ord> Ord for FiberState<Y, R>[src]

impl<Y: PartialEq, R: PartialEq> PartialEq<FiberState<Y, R>> for FiberState<Y, R>[src]

impl<Y: PartialOrd, R: PartialOrd> PartialOrd<FiberState<Y, R>> for FiberState<Y, R>[src]

impl<Y, R> StructuralEq for FiberState<Y, R>[src]

impl<Y, R> StructuralPartialEq for FiberState<Y, R>[src]

Auto Trait Implementations

impl<Y, R> Send for FiberState<Y, R> where
    R: Send,
    Y: Send

impl<Y, R> Sync for FiberState<Y, R> where
    R: Sync,
    Y: Sync

impl<Y, R> Unpin for FiberState<Y, R> where
    R: Unpin,
    Y: Unpin

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.