#[non_exhaustive]pub enum Progress<'a, T> {
Read(ReadRequest<'a>),
Done(T),
}Expand description
What Task::resume found.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Read(ReadRequest<'a>)
The task needs bytes; supply them and resume.
Done(T)
The task finished with this result.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> !UnwindSafe for Progress<'a, T>
impl<'a, T> Forget for Progress<'a, T>
impl<'a, T> Freeze for Progress<'a, T>where
T: Freeze,
impl<'a, T> Move for Progress<'a, T>
impl<'a, T> RefUnwindSafe for Progress<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Progress<'a, T>where
T: Send,
impl<'a, T> Sync for Progress<'a, T>where
T: Sync,
impl<'a, T> Unpin for Progress<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for Progress<'a, T>where
T: UnsafeUnpin,
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