Struct rumqttlog::Connection [−][src]
pub struct Connection {
pub conn: ConnectionType,
// some fields omitted
}
Expand description
Used to register a new connection with the router Connection messages encompasses a handle for router to communicate with this connection
Fields
conn: ConnectionType
Kind of connection. A replicator connection or a device connection Replicator connection are only created from inside this library. All the external connections are of ‘device’ type
Implementations
pub fn new_remote(
id: &str,
clean: bool,
capacity: usize
) -> (Connection, Receiver<Notification>)
pub fn new_replica(
id: usize,
clean: bool,
capacity: usize
) -> (Connection, Receiver<Notification>)
Sends notification and returns status to unschedule this connection