pub struct Handle<C>{ /* private fields */ }Implementations§
Source§impl<C> Handle<C>
impl<C> Handle<C>
pub fn new(cmd_tx: Sender<Command<C>>) -> Self
pub async fn connect(&self) -> Result<(), Error>
pub fn try_connect(&self) -> Result<(), Error>
pub async fn disconnect(&self) -> Result<(), Error>
pub fn try_disconnect(&self) -> Result<(), Error>
pub async fn send_command(&self, msg: C) -> Result<(), Error>
pub fn try_send_command(&self, msg: C) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for Handle<C>
impl<C> RefUnwindSafe for Handle<C>
impl<C> Send for Handle<C>
impl<C> Sync for Handle<C>
impl<C> Unpin for Handle<C>
impl<C> UnsafeUnpin for Handle<C>
impl<C> UnwindSafe for Handle<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