pub struct LightSensorHandler<T> { /* private fields */ }
Implementations§
Source§impl<T> LightSensorHandler<T>
impl<T> LightSensorHandler<T>
pub fn new( calibrator: impl Into<Option<T>>, configuration: SensorConfiguration, inspect_status: InputHandlerStatus, ) -> Rc<Self>
pub async fn handle_light_sensor_request_stream( self: &Rc<Self>, stream: SensorRequestStream, ) -> Result<(), Error>
Trait Implementations§
Source§impl<T> InputHandler for LightSensorHandler<T>where
T: Calibrate + 'static,
impl<T> InputHandler for LightSensorHandler<T>where
T: Calibrate + 'static,
Source§fn handle_input_event<'async_trait>(
self: Rc<Self>,
input_event: InputEvent,
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>where
Self: 'async_trait,
fn handle_input_event<'async_trait>(
self: Rc<Self>,
input_event: InputEvent,
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>where
Self: 'async_trait,
Returns a vector of InputEvents to propagate to the next InputHandler. Read more
fn set_handler_healthy(self: Rc<Self>)
fn set_handler_unhealthy(self: Rc<Self>, msg: &str)
Auto Trait Implementations§
impl<T> !Freeze for LightSensorHandler<T>
impl<T> !RefUnwindSafe for LightSensorHandler<T>
impl<T> !Send for LightSensorHandler<T>
impl<T> !Sync for LightSensorHandler<T>
impl<T> Unpin for LightSensorHandler<T>where
T: Unpin,
impl<T> !UnwindSafe for LightSensorHandler<T>
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