#[repr(C)]pub struct PamojaMqttWill {
pub topic: *const c_char,
pub payload: *const u8,
pub payload_len: usize,
pub qos: PamojaQos,
pub retain: bool,
}Expand description
A message the broker publishes on the client’s behalf if its connection ends without a disconnect: the network dropped, the power failed, or the keep-alive ran out.
topic is a borrowed null-terminated UTF-8 string with no wildcard, and payload
points at payload_len bytes, or is null when payload_len is 0.
Fields§
§topic: *const c_charThe topic the broker publishes it to.
payload: *const u8What it publishes.
payload_len: usizeHow many bytes payload holds.
qos: PamojaQosThe quality of service it is published at.
retain: boolWhether the broker retains it for clients that subscribe later.
Auto Trait Implementations§
impl !Send for PamojaMqttWill
impl !Sync for PamojaMqttWill
impl Freeze for PamojaMqttWill
impl RefUnwindSafe for PamojaMqttWill
impl Unpin for PamojaMqttWill
impl UnsafeUnpin for PamojaMqttWill
impl UnwindSafe for PamojaMqttWill
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