pub struct UniqueTask { /* private fields */ }Implementations§
Source§impl UniqueTask
impl UniqueTask
pub fn new(name: String) -> Self
pub fn update(&mut self, msg: &TaskUpdate) -> Option<TaskUpdateTag>
pub fn must_not_running(&self)
pub fn must_running(&self)
Trait Implementations§
Source§impl Clone for UniqueTask
impl Clone for UniqueTask
Source§fn clone(&self) -> UniqueTask
fn clone(&self) -> UniqueTask
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 Freeze for UniqueTask
impl RefUnwindSafe for UniqueTask
impl Send for UniqueTask
impl Sync for UniqueTask
impl Unpin for UniqueTask
impl UnwindSafe for UniqueTask
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