pub struct InspectableBoolWatcher { /* private fields */ }
Trait Implementations§
Source§impl Watch<bool> for InspectableBoolWatcher
impl Watch<bool> for InspectableBoolWatcher
Source§fn new(value: &bool, node: &Node, name: impl Into<StringReference>) -> Self
fn new(value: &bool, node: &Node, name: impl Into<StringReference>) -> Self
Used by
Inspectable::new()
to create a Watch
er that exports via
Inspect the Inspectable
’s wrapped value
.Source§fn watch(&mut self, value: &bool)
fn watch(&mut self, value: &bool)
Called by
InspectableGuard
when the guard is dropped, letting the
Watch
er update its state with the updated value
.Auto Trait Implementations§
impl Freeze for InspectableBoolWatcher
impl !RefUnwindSafe for InspectableBoolWatcher
impl Send for InspectableBoolWatcher
impl Sync for InspectableBoolWatcher
impl Unpin for InspectableBoolWatcher
impl !UnwindSafe for InspectableBoolWatcher
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