Enum drone_core::fib::FiberState [−][src]
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
The fiber suspended with a value.
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,
R: Send,
Y: Send,
impl<Y, R> Sync for FiberState<Y, R> where
R: Sync,
Y: Sync,
R: Sync,
Y: Sync,
impl<Y, R> Unpin for FiberState<Y, R> where
R: Unpin,
Y: Unpin,
R: Unpin,
Y: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,