pub struct PeriodicCompletionNotifier(/* private fields */);Expand description
Completion notifier for periodic tasks.
Some(buffer_size) keeps at most that many pending Called notifications.
None keeps every notification. A final Cancelled notification is kept
separately and is never evicted by the bounded queue.
周期任务完成通知器。
Some(buffer_size) 最多保留指定数量的待消费 Called 通知;None 保留
所有通知。最终的 Cancelled 通知独立保存,不会被有界队列挤出。
Trait Implementations§
Source§impl Drop for PeriodicCompletionNotifier
impl Drop for PeriodicCompletionNotifier
Auto Trait Implementations§
impl !RefUnwindSafe for PeriodicCompletionNotifier
impl !UnwindSafe for PeriodicCompletionNotifier
impl Freeze for PeriodicCompletionNotifier
impl Send for PeriodicCompletionNotifier
impl Sync for PeriodicCompletionNotifier
impl Unpin for PeriodicCompletionNotifier
impl UnsafeUnpin for PeriodicCompletionNotifier
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