pub struct Publish(/* private fields */);Implementations§
Source§impl Publish
impl Publish
Sourcepub fn packet_mut(&mut self) -> &mut Publish
pub fn packet_mut(&mut self) -> &mut Publish
Returns reference to publish packet
Sourcepub fn packet_size(&self) -> u32
pub fn packet_size(&self) -> u32
Returns size of the packet
Sourcepub fn payload_size(&self) -> usize
pub fn payload_size(&self) -> usize
Returns size of the payload
Sourcepub async fn read(&self) -> Result<Option<Bytes>, PayloadError>
pub async fn read(&self) -> Result<Option<Bytes>, PayloadError>
Payload that is being published.
Sourcepub async fn read_all(&self) -> Result<Option<Bytes>, PayloadError>
pub async fn read_all(&self) -> Result<Option<Bytes>, PayloadError>
Payload that is being published.
pub fn ack(self) -> ControlAck
pub fn into_inner(self) -> (ControlAck, Publish)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Publish
impl !RefUnwindSafe for Publish
impl !Send for Publish
impl !Sync for Publish
impl Unpin for Publish
impl !UnwindSafe for Publish
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