pub struct DeviceStateClient<S> { /* private fields */ }Implementations§
Source§impl<S: AsyncRead + AsyncWrite + Unpin + Send> DeviceStateClient<S>
impl<S: AsyncRead + AsyncWrite + Unpin + Send> DeviceStateClient<S>
pub async fn connect(stream: S) -> Result<Self, DtxError>
pub async fn list(&mut self) -> Result<Vec<ConditionProfileType>, DtxError>
pub async fn enable( &mut self, profile_type_id: &str, profile_id: &str, ) -> Result<bool, DtxError>
pub async fn disable(&mut self) -> Result<(), DtxError>
Auto Trait Implementations§
impl<S> Freeze for DeviceStateClient<S>where
S: Freeze,
impl<S> RefUnwindSafe for DeviceStateClient<S>where
S: RefUnwindSafe,
impl<S> Send for DeviceStateClient<S>where
S: Send,
impl<S> Sync for DeviceStateClient<S>where
S: Sync,
impl<S> Unpin for DeviceStateClient<S>where
S: Unpin,
impl<S> UnsafeUnpin for DeviceStateClient<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for DeviceStateClient<S>where
S: UnwindSafe,
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