pub struct PublishRelease { /* private fields */ }Implementations§
Source§impl PublishRelease
impl PublishRelease
Sourcepub fn packet(&self) -> &PublishAck2
pub fn packet(&self) -> &PublishAck2
Returns reference to auth packet
Sourcepub fn packet_size(&self) -> u32
pub fn packet_size(&self) -> u32
Returns size of the packet
Sourcepub fn properties<F>(self, f: F) -> Selfwhere
F: FnOnce(&mut UserProperties),
pub fn properties<F>(self, f: F) -> Selfwhere
F: FnOnce(&mut UserProperties),
Update user properties
Sourcepub fn reason(self, reason: ByteString) -> Self
pub fn reason(self, reason: ByteString) -> Self
Set ack reason string
Sourcepub fn ack(self) -> ControlAck
pub fn ack(self) -> ControlAck
Ack publish release
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PublishRelease
impl !RefUnwindSafe for PublishRelease
impl Send for PublishRelease
impl Sync for PublishRelease
impl Unpin for PublishRelease
impl !UnwindSafe for PublishRelease
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more