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