pub struct TimeoutControl<A>where
A: TimerAccess,{ /* private fields */ }Expand description
同一计时登记的线程安全(thread-safe)控制,不拥有被等待的业务Future。
Implementations§
Source§impl<A> TimeoutControl<A>where
A: TimerAccess,
impl<A> TimeoutControl<A>where
A: TimerAccess,
Sourcepub fn cancel(&self) -> Result<bool, TimerError>
pub fn cancel(&self) -> Result<bool, TimerError>
记录/合并取消;true不证明来源移除,false表示本份等待已结束或不可取消。 错误不回滚已记录请求,后续责任仍由预备接续者承担。
Trait Implementations§
Source§impl<A> Clone for TimeoutControl<A>where
A: TimerAccess,
impl<A> Clone for TimeoutControl<A>where
A: TimerAccess,
Source§fn clone(&self) -> TimeoutControl<A>
fn clone(&self) -> TimeoutControl<A>
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 moreAuto Trait Implementations§
impl<A> Forget for TimeoutControl<A>
impl<A> Freeze for TimeoutControl<A>
impl<A> Move for TimeoutControl<A>
impl<A> RefUnwindSafe for TimeoutControl<A>
impl<A> Send for TimeoutControl<A>
impl<A> Sync for TimeoutControl<A>
impl<A> Unpin for TimeoutControl<A>
impl<A> UnsafeUnpin for TimeoutControl<A>
impl<A> UnwindSafe for TimeoutControl<A>
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