pub struct DeviceTopic {
pub topic: String,
pub message_type: DeviceMessage,
}Fields§
§topic: String§message_type: DeviceMessageImplementations§
Source§impl DeviceTopic
impl DeviceTopic
pub fn new( group_id: &str, message_type: DeviceMessage, node_id: &str, device_id: &str, ) -> Self
pub fn get_publish_quality_retain(&self) -> (QoS, bool)
Trait Implementations§
Source§impl Clone for DeviceTopic
impl Clone for DeviceTopic
Source§fn clone(&self) -> DeviceTopic
fn clone(&self) -> DeviceTopic
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 moreSource§impl Debug for DeviceTopic
impl Debug for DeviceTopic
Source§impl PartialEq for DeviceTopic
impl PartialEq for DeviceTopic
impl StructuralPartialEq for DeviceTopic
Auto Trait Implementations§
impl Freeze for DeviceTopic
impl RefUnwindSafe for DeviceTopic
impl Send for DeviceTopic
impl Sync for DeviceTopic
impl Unpin for DeviceTopic
impl UnwindSafe for DeviceTopic
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