pub struct StreamingPublishBuilder { /* private fields */ }Implementations§
Source§impl StreamingPublishBuilder
impl StreamingPublishBuilder
Sourcepub fn send_at_most_once(self) -> Result<(), SendPacketError>
pub fn send_at_most_once(self) -> Result<(), SendPacketError>
Send publish packet with QoS 0
Sourcepub fn send_at_least_once(
self,
) -> impl Future<Output = Result<PublishAck, SendPacketError>>
pub fn send_at_least_once( self, ) -> impl Future<Output = Result<PublishAck, SendPacketError>>
Send publish packet with QoS 1
Sourcepub fn send_at_least_once_no_block(self) -> Result<(), SendPacketError>
pub fn send_at_least_once_no_block(self) -> Result<(), SendPacketError>
Non-blocking send publish packet with QoS 1
Panics if sink is not ready or publish ack callback is not set
Auto Trait Implementations§
impl Freeze for StreamingPublishBuilder
impl !RefUnwindSafe for StreamingPublishBuilder
impl !Send for StreamingPublishBuilder
impl !Sync for StreamingPublishBuilder
impl Unpin for StreamingPublishBuilder
impl !UnwindSafe for StreamingPublishBuilder
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