pub struct LastWill {
pub qos: QoS,
pub retain: bool,
pub topic: ByteString,
pub message: Bytes,
pub will_delay_interval_sec: Option<u32>,
pub correlation_data: Option<Bytes>,
pub message_expiry_interval: Option<NonZeroU32>,
pub content_type: Option<ByteString>,
pub user_properties: UserProperties,
pub is_utf8_payload: Option<bool>,
pub response_topic: Option<ByteString>,
}
Expand description
Connection Will
Fields
qos: QoS
the QoS level to be used when publishing the Will Message.
retain: bool
the Will Message is to be Retained when it is published.
topic: ByteString
the Will Topic
message: Bytes
defines the Application Message that is to be published to the Will Topic
will_delay_interval_sec: Option<u32>
correlation_data: Option<Bytes>
message_expiry_interval: Option<NonZeroU32>
content_type: Option<ByteString>
user_properties: UserProperties
is_utf8_payload: Option<bool>
response_topic: Option<ByteString>
Trait Implementations
impl StructuralPartialEq for LastWill
Auto Trait Implementations
impl !RefUnwindSafe for LastWill
impl Send for LastWill
impl Sync for LastWill
impl Unpin for LastWill
impl !UnwindSafe for LastWill
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more