Enum sylvia_iot_data::libs::mq::Connection
source · pub enum Connection {
Amqp(AmqpConnection, Arc<Mutex<isize>>),
Mqtt(MqttConnection, Arc<Mutex<isize>>),
}
Expand description
The general connection type with reference counter for upper layer maintenance.
Variants§
Amqp(AmqpConnection, Arc<Mutex<isize>>)
Mqtt(MqttConnection, Arc<Mutex<isize>>)
Trait Implementations§
source§impl Clone for Connection
impl Clone for Connection
source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more