pub enum StartEncodeStatus<Enc, Err> {
Fini,
Pending(Enc),
Error(Err),
}
Expand description
Contains the resultant state of a start_encode opertation.
This is very simlar to the Poll enum, except that it is flattened and that in the event that the operation is pending, the encode state required to resume the operation is returned.
Variants§
Implementations§
Source§impl<Enc, Err> StartEncodeStatus<Enc, Err>
impl<Enc, Err> StartEncodeStatus<Enc, Err>
pub fn map_pending<F, E>(self, f: F) -> StartEncodeStatus<E, Err>where
F: FnOnce(Enc) -> E,
Auto Trait Implementations§
impl<Enc, Err> Freeze for StartEncodeStatus<Enc, Err>
impl<Enc, Err> RefUnwindSafe for StartEncodeStatus<Enc, Err>where
Enc: RefUnwindSafe,
Err: RefUnwindSafe,
impl<Enc, Err> Send for StartEncodeStatus<Enc, Err>
impl<Enc, Err> Sync for StartEncodeStatus<Enc, Err>
impl<Enc, Err> Unpin for StartEncodeStatus<Enc, Err>
impl<Enc, Err> UnwindSafe for StartEncodeStatus<Enc, Err>where
Enc: UnwindSafe,
Err: 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