Enum omnisensor::sensor::SensorMode
source · [−]Expand description
A sensor’s (dbus) read-only or read-write mode.
Variants
ReadOnly
The sensor’s value is read-only via dbus.
ReadWrite(Box<dyn Fn(&Sensor, f64) + Send>)
The sensor’s value can be written via dbus.
The boxed callback will be called when a dbus write occurs.
Auto Trait Implementations
impl !RefUnwindSafe for SensorMode
impl Send for SensorMode
impl !Sync for SensorMode
impl Unpin for SensorMode
impl !UnwindSafe for SensorMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more