pub struct WakeHandle { /* private fields */ }Implementations§
Source§impl WakeHandle
impl WakeHandle
pub fn new() -> WakeHandle
pub const fn detached() -> WakeHandle
pub fn scope_key(&self) -> Option<usize>
pub const fn is_detached(&self) -> bool
pub fn is_active(&self) -> bool
pub fn wake(&self)
Sourcepub fn note_change(&self)
pub fn note_change(&self)
Note on the owner’s thread that something it reads changed, without waking it: a pass that is running or due takes it up.
pub fn revision(&self) -> Option<u64>
pub fn crossed(&self) -> Option<u64>
Sourcepub fn wake_save_progress(&self)
pub fn wake_save_progress(&self)
Wake the owner because a record’s save moved on, and for nothing else.
Sourcepub fn owe(&self) -> Owed
pub fn owe(&self) -> Owed
Owe the owner a reply: the work holds the Owed and drops it once its
answer is queued.
The host this scope runs inside is owed the reply as well, and so is its host.
pub fn owes(&self) -> bool
Sourcepub fn begin_pass(&self)
pub fn begin_pass(&self)
Mark where a pass begins, so Self::settled asks only about replies that
land after it.
Sourcepub fn settled(&self) -> bool
pub fn settled(&self) -> bool
Whether nothing is owed and no reply landed since Self::begin_pass.
Trait Implementations§
Source§impl Clone for WakeHandle
impl Clone for WakeHandle
Source§fn clone(&self) -> WakeHandle
fn clone(&self) -> WakeHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WakeHandle
impl Debug for WakeHandle
Source§impl Default for WakeHandle
impl Default for WakeHandle
Source§fn default() -> WakeHandle
fn default() -> WakeHandle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for WakeHandle
impl Freeze for WakeHandle
impl Move for WakeHandle
impl RefUnwindSafe for WakeHandle
impl Send for WakeHandle
impl Sync for WakeHandle
impl Unpin for WakeHandle
impl UnsafeUnpin for WakeHandle
impl UnwindSafe for WakeHandle
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more