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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MqttQueueOptions
impl RefUnwindSafe for MqttQueueOptions
impl Send for MqttQueueOptions
impl Sync for MqttQueueOptions
impl Unpin for MqttQueueOptions
impl UnwindSafe for MqttQueueOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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