Struct poster::SubscribeRsp
source · pub struct SubscribeRsp { /* private fields */ }
Expand description
Response to the subscription request, representing the Suback packet.
In order to receive messages published on the subscribed topics use the stream method.
Implementations§
source§impl SubscribeRsp
impl SubscribeRsp
sourcepub fn stream(self) -> SubscribeStream
pub fn stream(self) -> SubscribeStream
Transforms this response into the asynchronous stream of messages published to the subscribed topics.
sourcepub fn reason_string(&self) -> Option<&str>
pub fn reason_string(&self) -> Option<&str>
Accesses reason string property.
sourcepub fn user_properties(&self) -> &UserProperties
pub fn user_properties(&self) -> &UserProperties
Accesses user properties.
sourcepub fn payload(&self) -> &[SubackReason]
pub fn payload(&self) -> &[SubackReason]
Accesses the payload being a list of SubackReason codes. Each reason code represents the result of the subscribe operation for the given topic.