pub struct DeviceLinkClient<S> { /* private fields */ }Implementations§
Source§impl<S> DeviceLinkClient<S>
impl<S> DeviceLinkClient<S>
pub fn new(stream: S) -> Self
pub fn into_inner(self) -> S
pub fn stream_mut(&mut self) -> &mut S
Source§impl<S> DeviceLinkClient<S>
impl<S> DeviceLinkClient<S>
pub async fn version_exchange(&mut self) -> Result<u64, DeviceLinkError>
pub async fn send_process_message<T>(
&mut self,
message: &T,
) -> Result<(), DeviceLinkError>where
T: Serialize,
pub async fn recv_process_message( &mut self, ) -> Result<Dictionary, DeviceLinkError>
pub async fn send_message<T>(
&mut self,
message: &T,
) -> Result<(), DeviceLinkError>where
T: Serialize,
pub async fn recv_message(&mut self) -> Result<Value, DeviceLinkError>
pub async fn disconnect(&mut self) -> Result<(), DeviceLinkError>
Auto Trait Implementations§
impl<S> Freeze for DeviceLinkClient<S>where
S: Freeze,
impl<S> RefUnwindSafe for DeviceLinkClient<S>where
S: RefUnwindSafe,
impl<S> Send for DeviceLinkClient<S>where
S: Send,
impl<S> Sync for DeviceLinkClient<S>where
S: Sync,
impl<S> Unpin for DeviceLinkClient<S>where
S: Unpin,
impl<S> UnsafeUnpin for DeviceLinkClient<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for DeviceLinkClient<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