pub struct MqttMsg {
pub topic: String,
pub retain: bool,
pub payload: Vec<u8>,
}
Expand description
Сообщение для передачи по MQTT
Fields§
§topic: String
Топик
retain: bool
Требуется ли сохранение
payload: Vec<u8>
Данные сообщения
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MqttMsg
impl RefUnwindSafe for MqttMsg
impl Send for MqttMsg
impl Sync for MqttMsg
impl Unpin for MqttMsg
impl UnwindSafe for MqttMsg
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