pub struct WakeHandle { /* private fields */ }Implementations§
Source§impl WakeHandle
impl WakeHandle
pub fn new() -> Self
pub const fn detached() -> Self
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§impl Debug for WakeHandle
impl Debug for WakeHandle
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