pub enum M2dirCoroutineState<Y, R> {
Yielded(Y),
Complete(R),
}Expand description
State yielded by an M2dirCoroutine::resume step.
Two-variant by design (matches std’s core::ops::CoroutineState): any
further variation lives inside the per-coroutine Yield type.
Variants§
Yielded(Y)
Intermediate yield. The driver reacts to Y (do filesystem I/O, supply
pid / random bytes…) and resumes the coroutine again.
Complete(R)
Terminal yield. By convention R = Result<Output, Error>.
Trait Implementations§
Auto Trait Implementations§
impl<Y, R> Freeze for M2dirCoroutineState<Y, R>
impl<Y, R> RefUnwindSafe for M2dirCoroutineState<Y, R>where
Y: RefUnwindSafe,
R: RefUnwindSafe,
impl<Y, R> Send for M2dirCoroutineState<Y, R>
impl<Y, R> Sync for M2dirCoroutineState<Y, R>
impl<Y, R> Unpin for M2dirCoroutineState<Y, R>
impl<Y, R> UnsafeUnpin for M2dirCoroutineState<Y, R>where
Y: UnsafeUnpin,
R: UnsafeUnpin,
impl<Y, R> UnwindSafe for M2dirCoroutineState<Y, R>where
Y: UnwindSafe,
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more