pub struct WorkInProgressResult<T> { /* private fields */ }
Expand description
For indicating when some work has been done or is in the process of being done, potentially being accompanied by a result object.
Implementations§
Source§impl<T> WorkInProgressResult<T>
impl<T> WorkInProgressResult<T>
pub fn new(result: Option<T>, done: bool) -> Self
pub fn done(result: T) -> Self
pub fn opt_done(result: Option<T>) -> Self
pub fn not_done(result: T) -> Self
pub fn opt_not_done(result: Option<T>) -> Self
pub fn done_none() -> Self
pub fn not_done_none() -> Self
pub fn result(&self) -> &Option<T>
pub fn is_done(&self) -> bool
pub fn take_result(self) -> Option<T>
Trait Implementations§
Source§impl<T> Debug for WorkInProgressResult<T>where
T: Debug,
impl<T> Debug for WorkInProgressResult<T>where
T: Debug,
Auto Trait Implementations§
impl<T> Freeze for WorkInProgressResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for WorkInProgressResult<T>where
T: RefUnwindSafe,
impl<T> Send for WorkInProgressResult<T>where
T: Send,
impl<T> Sync for WorkInProgressResult<T>where
T: Sync,
impl<T> Unpin for WorkInProgressResult<T>where
T: Unpin,
impl<T> UnwindSafe for WorkInProgressResult<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