pub enum HttpCoroutineState<Y, R> {
Yielded(Y),
Complete(R),
}Expand description
State yielded by an HttpCoroutine::resume step.
Variants§
Yielded(Y)
Intermediate step: the coroutine needs the caller to perform the carried I/O request before the next resume.
Complete(R)
Terminal step: the coroutine is done and carries its final output or error.
Trait Implementations§
Auto Trait Implementations§
impl<Y, R> Freeze for HttpCoroutineState<Y, R>
impl<Y, R> RefUnwindSafe for HttpCoroutineState<Y, R>where
Y: RefUnwindSafe,
R: RefUnwindSafe,
impl<Y, R> Send for HttpCoroutineState<Y, R>
impl<Y, R> Sync for HttpCoroutineState<Y, R>
impl<Y, R> Unpin for HttpCoroutineState<Y, R>
impl<Y, R> UnsafeUnpin for HttpCoroutineState<Y, R>where
Y: UnsafeUnpin,
R: UnsafeUnpin,
impl<Y, R> UnwindSafe for HttpCoroutineState<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