pub(super) struct Snapshot(usize);
Expand description
Current state value.
Tuple Fields§
§0: usize
Implementations§
source§impl Snapshot
impl Snapshot
sourcepub(super) fn is_notified(self) -> bool
pub(super) fn is_notified(self) -> bool
Returns true
if the task has been flagged as notified.
fn unset_notified(&mut self)
fn set_notified(&mut self)
pub(super) fn is_running(self) -> bool
fn set_running(&mut self)
fn unset_running(&mut self)
pub(super) fn is_cancelled(self) -> bool
fn set_cancelled(&mut self)
sourcepub(super) fn is_complete(self) -> bool
pub(super) fn is_complete(self) -> bool
Returns true
if the task’s future has completed execution.
pub(super) fn is_join_interested(self) -> bool
fn unset_join_interested(&mut self)
pub(super) fn is_join_waker_set(self) -> bool
fn set_join_waker(&mut self)
fn unset_join_waker(&mut self)
pub(super) fn ref_count(self) -> usize
fn ref_inc(&mut self)
pub(super) fn ref_dec(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnwindSafe for Snapshot
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)