[][src]Struct actix_mqtt::Publish

pub struct Publish<S> { /* fields omitted */ }

Publish message

Methods

impl<S> Publish<S>[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 session(&self) -> Ref<S>[src]

returns reference to a connection session

pub fn session_mut(&mut self) -> RefMut<S>[src]

returns mutable reference to a connection session

pub fn id(&self) -> Option<u16>[src]

only present in PUBLISH Packets where the QoS level is 1 or 2.

pub fn topic(&self) -> &Path<String<Bytes>>[src]

pub fn topic_mut(&mut self) -> &mut Path<String<Bytes>>[src]

pub fn query(&self) -> &str[src]

pub fn packet(&self) -> &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 sink(&self) -> &MqttSink[src]

Mqtt client sink object

pub fn json<T: DeserializeOwned>(&mut self) -> Result<T, JsonError>[src]

Loads and parse application/json encoded body.

Trait Implementations

impl<S> Debug for Publish<S>[src]

Auto Trait Implementations

impl<S> !Send for Publish<S>

impl<S> !Sync for Publish<S>

impl<S> Unpin for Publish<S>

impl<S> !RefUnwindSafe for Publish<S>

impl<S> !UnwindSafe for Publish<S>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T