pub enum SensorRequest {
Watch {
responder: SensorWatchResponder,
},
}
Expand description
Sensor
will return calibrated readings from a product-configured light
sensor.
Variants§
Watch
Gets the current LightSensorData. Returns immediately on first call; subsequent calls return when the value changes.
Fields
§
responder: SensorWatchResponder
Implementations§
source§impl SensorRequest
impl SensorRequest
pub fn into_watch(self) -> Option<SensorWatchResponder>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SensorRequest
impl !RefUnwindSafe for SensorRequest
impl Send for SensorRequest
impl Sync for SensorRequest
impl Unpin for SensorRequest
impl !UnwindSafe for SensorRequest
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