pub struct MonitorRegistry { /* private fields */ }
Expand description
A thread-safe registry for resource monitors.
Implementations§
Source§impl MonitorRegistry
impl MonitorRegistry
Sourcepub fn update_all(&self)
pub fn update_all(&self)
Calls the update
method on all registered monitors.
Sourcepub fn get_all_monitors(&self) -> Vec<Arc<dyn ResourceMonitor>>
pub fn get_all_monitors(&self) -> Vec<Arc<dyn ResourceMonitor>>
Returns a clone of all registered monitors.
Trait Implementations§
Source§impl Clone for MonitorRegistry
impl Clone for MonitorRegistry
Source§fn clone(&self) -> MonitorRegistry
fn clone(&self) -> MonitorRegistry
Returns a duplicate 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 MonitorRegistry
impl Debug for MonitorRegistry
Auto Trait Implementations§
impl Freeze for MonitorRegistry
impl RefUnwindSafe for MonitorRegistry
impl Send for MonitorRegistry
impl Sync for MonitorRegistry
impl Unpin for MonitorRegistry
impl UnwindSafe for MonitorRegistry
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