Struct RootWakeState
pub struct RootWakeState { /* private fields */ }Expand description
每次同步根推进的独立通知状态;不保有根Future或完整服务。
Implementations§
§impl RootWakeState
impl RootWakeState
pub fn is_notified(&self) -> bool
pub fn is_notified(&self) -> bool
读取本次根通知(root notification)样本,不消费通知、不轮询(poll)根异步计算(Future)。 返回后仍可能产生新通知;不能以一次false代替停放前的重查。
pub fn park(&self)
pub fn park(&self)
根专用停放;通知permit与检查防丢唤醒,不能改为忙等。
Trait Implementations§
§impl Wake for RootWakeState
impl Wake for RootWakeState
Auto Trait Implementations§
impl !Freeze for RootWakeState
impl Forget for RootWakeState
impl Move for RootWakeState
impl RefUnwindSafe for RootWakeState
impl Send for RootWakeState
impl Sync for RootWakeState
impl Unpin for RootWakeState
impl UnsafeUnpin for RootWakeState
impl UnwindSafe for RootWakeState
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