pub struct DeviceStats<'c> { /* private fields */ }Implementations§
Source§impl DeviceStats<'_>
impl DeviceStats<'_>
pub async fn list(&self) -> Result<Vec<DeviceState>>
Sourcepub async fn get(
&self,
device_name: impl Into<String> + Send,
) -> Result<DeviceState>
pub async fn get( &self, device_name: impl Into<String> + Send, ) -> Result<DeviceState>
Retrieve the current state of a device
Sourcepub async fn change(
&self,
device_name: impl Into<String> + Send,
state: State,
) -> Result<()>
pub async fn change( &self, device_name: impl Into<String> + Send, state: State, ) -> Result<()>
Change the state of a device controlled by ARI. (Note - implicitly creates the device state).
pub async fn destroy(&self, device_name: impl Into<String> + Send) -> Result<()>
Auto Trait Implementations§
impl<'c> Freeze for DeviceStats<'c>
impl<'c> !RefUnwindSafe for DeviceStats<'c>
impl<'c> Send for DeviceStats<'c>
impl<'c> Sync for DeviceStats<'c>
impl<'c> Unpin for DeviceStats<'c>
impl<'c> !UnwindSafe for DeviceStats<'c>
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