[−][src]Struct ntex_mqtt::v5::Publish
Publish message
Implementations
impl Publish
[src]
pub fn dup(&self) -> bool
[src]
this might be re-delivery of an earlier attempt to send the Packet.
pub fn retain(&self) -> bool
[src]
pub fn qos(&self) -> QoS
[src]
the level of assurance for delivery of an Application Message.
pub fn publish_topic(&self) -> &str
[src]
the information channel to which payload data is published.
pub fn id(&self) -> Option<NonZeroU16>
[src]
only present in PUBLISH Packets where the QoS level is 1 or 2.
pub fn topic(&self) -> &Path<ByteString>
[src]
pub fn topic_mut(&mut self) -> &mut Path<ByteString>
[src]
pub fn packet(&self) -> &Publish
[src]
pub fn packet_mut(&mut self) -> &mut Publish
[src]
pub fn payload(&self) -> &Bytes
[src]
the Application Message that is being published.
pub fn take_payload(&self) -> Bytes
[src]
Extract Bytes from packet payload
pub fn json<T: DeserializeOwned>(&mut self) -> Result<T, JsonError>
[src]
Loads and parse application/json
encoded body.
pub fn ack(self) -> PublishAck
[src]
Create acknowledgement for this packet
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Publish
[src]
impl Send for Publish
[src]
impl Sync for Publish
[src]
impl Unpin for Publish
[src]
impl UnwindSafe for Publish
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,