pub struct SubscriberOptions<'a> {
pub topic: &'a str,
pub qos: QosSettings,
}Expand description
Options for creating a subscriber
Fields§
§topic: &'a strTopic name
qos: QosSettingsQoS settings
Implementations§
Source§impl<'a> SubscriberOptions<'a>
impl<'a> SubscriberOptions<'a>
Sourcepub fn new(topic: &'a str) -> SubscriberOptions<'a>
pub fn new(topic: &'a str) -> SubscriberOptions<'a>
Create new subscriber options with the given topic and default QoS
Sourcepub fn qos(self, qos: QosSettings) -> SubscriberOptions<'a>
pub fn qos(self, qos: QosSettings) -> SubscriberOptions<'a>
Set the QoS settings
Trait Implementations§
Source§impl<'a> Clone for SubscriberOptions<'a>
impl<'a> Clone for SubscriberOptions<'a>
Source§fn clone(&self) -> SubscriberOptions<'a>
fn clone(&self) -> SubscriberOptions<'a>
Returns a duplicate 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<'a> Freeze for SubscriberOptions<'a>
impl<'a> RefUnwindSafe for SubscriberOptions<'a>
impl<'a> Send for SubscriberOptions<'a>
impl<'a> Sync for SubscriberOptions<'a>
impl<'a> Unpin for SubscriberOptions<'a>
impl<'a> UnsafeUnpin for SubscriberOptions<'a>
impl<'a> UnwindSafe for SubscriberOptions<'a>
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