pub struct AutoSubscribe {
pub topic: Topic,
pub qos: QoS,
}Expand description
An AutoSubscribe is sent to the broker after connected.
It is also sent to the broker after reconnects. This should be the preferrd way to subscribe to topics.
Fields§
§topic: Topic§qos: QoSImplementations§
Trait Implementations§
Source§impl Clone for AutoSubscribe
impl Clone for AutoSubscribe
Source§fn clone(&self) -> AutoSubscribe
fn clone(&self) -> AutoSubscribe
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 Freeze for AutoSubscribe
impl RefUnwindSafe for AutoSubscribe
impl Send for AutoSubscribe
impl Sync for AutoSubscribe
impl Unpin for AutoSubscribe
impl UnwindSafe for AutoSubscribe
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