Struct OwnedSubscriber
pub struct OwnedSubscriber {
pub(crate) subscriber: Subscriber,
pub(crate) topics: Vec<String>,
pub(crate) mqtt: MqttClient,
}Expand description
Represents an MQTT subscriber that owns the underlying subscriber and
tracks the subscribed topics. When the OwnedSubscriber is dropped,
it will unsubscribe from all the subscribed topics.
Fields§
§subscriber: Subscriber§topics: Vec<String>§mqtt: MqttClientImplementations§
Trait Implementations§
§impl Debug for OwnedSubscriber
impl Debug for OwnedSubscriber
Auto Trait Implementations§
impl Freeze for OwnedSubscriber
impl !RefUnwindSafe for OwnedSubscriber
impl Send for OwnedSubscriber
impl Sync for OwnedSubscriber
impl Unpin for OwnedSubscriber
impl !UnwindSafe for OwnedSubscriber
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