Struct mqtt_service::Connection
source · pub struct Connection { /* private fields */ }
Expand description
Handle to the connection
Implementations§
source§impl Connection
impl Connection
sourcepub fn new(
node_id: impl Into<String>,
hostname: impl Into<String>,
port: u16,
) -> Connection
pub fn new( node_id: impl Into<String>, hostname: impl Into<String>, port: u16, ) -> Connection
Create a new MQTT Connection, with the given name to connect at the given and MQTT broker
Auto Trait Implementations§
impl Freeze for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
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