pub enum PartialResult<T> {
Complete(T),
Partial(ContinuationState),
}Expand description
Partial result from a time-sliced operation.
Contains the current state and a flag indicating whether the operation is complete or needs to be resumed.
Variants§
Complete(T)
Operation completed successfully.
Partial(ContinuationState)
Operation needs to be resumed with the given continuation state.
Trait Implementations§
Source§impl<T: Clone> Clone for PartialResult<T>
impl<T: Clone> Clone for PartialResult<T>
Source§fn clone(&self) -> PartialResult<T>
fn clone(&self) -> PartialResult<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for PartialResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for PartialResult<T>where
T: RefUnwindSafe,
impl<T> Send for PartialResult<T>where
T: Send,
impl<T> Sync for PartialResult<T>where
T: Sync,
impl<T> Unpin for PartialResult<T>where
T: Unpin,
impl<T> UnwindSafe for PartialResult<T>where
T: 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