pub struct ListenerInspectLogger { /* private fields */ }
Implementations§
Source§impl ListenerInspectLogger
impl ListenerInspectLogger
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new ListenerInspectLogger that writes to the default fuchsia_inspect::component::inspector().
pub fn with_inspector(inspector: &Inspector) -> Self
Sourcepub fn add_listener(&mut self, setting_type: SettingType)
pub fn add_listener(&mut self, setting_type: SettingType)
Adds a listener to the count for [setting_type].
Sourcepub fn remove_listener(&mut self, setting_type: SettingType)
pub fn remove_listener(&mut self, setting_type: SettingType)
Removes a listener from the count for [setting_type].
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ListenerInspectLogger
impl !RefUnwindSafe for ListenerInspectLogger
impl Send for ListenerInspectLogger
impl Sync for ListenerInspectLogger
impl Unpin for ListenerInspectLogger
impl !UnwindSafe for ListenerInspectLogger
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