Struct general_mq::MqttQueueOptions 
source · pub struct MqttQueueOptions {
    pub name: String,
    pub is_recv: bool,
    pub reliable: bool,
    pub broadcast: bool,
    pub reconnect_millis: u64,
    pub shared_prefix: Option<String>,
}Expand description
The queue options.
Fields§
§name: StringThe queue name that is used to map a MQTT topic.
The pattern is [QUEUE_NAME_PATTERN].
is_recv: booltrue for the receiver and false for the sender.
reliable: boolReliable by using QoS 1.
broadcast: booltrue for broadcast and false for unicast.
Note: the unicast queue relies on shared queue. See the shared_prefix option.
reconnect_millis: u64Time in milliseconds from disconnection to reconnection.
Default or zero value is 1000.
Used for broadcast=false.
Trait Implementations§
source§impl Clone for MqttQueueOptions
 
impl Clone for MqttQueueOptions
source§fn clone(&self) -> MqttQueueOptions
 
fn clone(&self) -> MqttQueueOptions
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 moreAuto Trait Implementations§
impl RefUnwindSafe for MqttQueueOptions
impl Send for MqttQueueOptions
impl Sync for MqttQueueOptions
impl Unpin for MqttQueueOptions
impl UnwindSafe for MqttQueueOptions
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