pub struct Publish<'a> {
pub dup: bool,
pub qos: QoS,
pub pid: Option<Pid>,
pub retain: bool,
pub topic_name: &'a str,
pub payload: &'a [u8],
}
Expand description
Publish packet (MQTT 3.3).
Fields
dup: bool
qos: QoS
pid: Option<Pid>
retain: bool
topic_name: &'a str
payload: &'a [u8]
Trait Implementations
sourceimpl<'a> PartialEq<Publish<'a>> for Publish<'a>
impl<'a> PartialEq<Publish<'a>> for Publish<'a>
impl<'a> StructuralPartialEq for Publish<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Publish<'a>
impl<'a> Send for Publish<'a>
impl<'a> Sync for Publish<'a>
impl<'a> Unpin for Publish<'a>
impl<'a> UnwindSafe for Publish<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more