Struct ntex_mqtt::v5::UnsubscribeBuilder
source · pub struct UnsubscribeBuilder { /* private fields */ }
Expand description
Unsubscribe packet builder
Implementations§
source§impl UnsubscribeBuilder
impl UnsubscribeBuilder
sourcepub fn topic_filter(self, filter: ByteString) -> Self
pub fn topic_filter(self, filter: ByteString) -> Self
Add topic filter
sourcepub fn property(self, key: ByteString, value: ByteString) -> Self
pub fn property(self, key: ByteString, value: ByteString) -> Self
Add user property
sourcepub async fn send(self) -> Result<UnsubscribeAck, SendPacketError>
pub async fn send(self) -> Result<UnsubscribeAck, SendPacketError>
Send unsubscribe packet