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