pub struct ConnectionManager { /* private fields */ }Implementations§
Source§impl ConnectionManager
impl ConnectionManager
pub fn new(strategy: ConnectionStrategy) -> Self
pub fn connect( &self, device_id: &str, factory: ConnectionFactory, ) -> Result<String>
pub fn disconnect(&self, device_id: &str) -> Result<()>
pub fn is_connected(&self, device_id: &str) -> bool
pub fn health(&self, device_id: &str) -> Option<HealthInfo>
pub fn send(&self, device_id: &str, data: &[u8]) -> Result<Vec<u8>>
pub fn shutdown(&self) -> Result<()>
Auto Trait Implementations§
impl !Freeze for ConnectionManager
impl RefUnwindSafe for ConnectionManager
impl Send for ConnectionManager
impl Sync for ConnectionManager
impl Unpin for ConnectionManager
impl UnsafeUnpin for ConnectionManager
impl UnwindSafe for ConnectionManager
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