pub struct NotificationCounter { /* private fields */ }
Expand description
Counting version of DriverNotify
NotificationCounter
is largely aimed at writing unit tests and it just records how many
times it has been notified, providing an interface to NotificationCounter::get
and [reset]
(NotificationCounter::set) the count.
Implementations§
Source§impl NotificationCounter
impl NotificationCounter
Sourcepub fn new() -> NotificationCounter
pub fn new() -> NotificationCounter
Construct a new NotificationCounter
Trait Implementations§
Source§impl Clone for NotificationCounter
impl Clone for NotificationCounter
Source§fn clone(&self) -> NotificationCounter
fn clone(&self) -> NotificationCounter
Returns a copy of the value. Read more
1.0.0 · 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 NotificationCounter
impl Debug for NotificationCounter
Source§impl DriverNotify for NotificationCounter
impl DriverNotify for NotificationCounter
Auto Trait Implementations§
impl Freeze for NotificationCounter
impl RefUnwindSafe for NotificationCounter
impl Send for NotificationCounter
impl Sync for NotificationCounter
impl Unpin for NotificationCounter
impl UnwindSafe for NotificationCounter
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)