pub struct DeviceSynchronousProxy { /* private fields */ }
Implementations§
source§impl DeviceSynchronousProxy
impl DeviceSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<DeviceEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<DeviceEvent, 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 get_temperature_celsius(
&self,
___deadline: Time
) -> Result<(i32, f32), Error>
pub fn get_temperature_celsius( &self, ___deadline: Time ) -> Result<(i32, f32), Error>
Get the current temperature in degrees Celsius.
pub fn get_sensor_name(&self, ___deadline: Time) -> Result<String, Error>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for DeviceSynchronousProxy
impl Send for DeviceSynchronousProxy
impl Sync for DeviceSynchronousProxy
impl Unpin for DeviceSynchronousProxy
impl UnwindSafe for DeviceSynchronousProxy
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