pub struct SensorSynchronousProxy { /* private fields */ }
Implementations§
source§impl SensorSynchronousProxy
impl SensorSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<SensorEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<SensorEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn watch(&self, ___deadline: Time) -> Result<LightSensorData, Error>
pub fn watch(&self, ___deadline: Time) -> Result<LightSensorData, Error>
Gets the current LightSensorData. Returns immediately on first call; subsequent calls return when the value changes.