pub struct SubscribeNotice(/* private fields */);Expand description
Wait handle returned by tracked subscribe APIs.
Implementations§
Source§impl SubscribeNotice
impl SubscribeNotice
Sourcepub fn wait(self) -> Result<SubAck, SubscribeNoticeError>
pub fn wait(self) -> Result<SubAck, SubscribeNoticeError>
Sourcepub async fn wait_async(self) -> Result<SubAck, SubscribeNoticeError>
pub async fn wait_async(self) -> Result<SubAck, SubscribeNoticeError>
Wait for SubAck asynchronously.
§Errors
Returns an error if the event loop drops the notice sender or if the
subscribe fails before a SubAck is available.
Sourcepub fn wait_completion(self) -> Result<(), SubscribeNoticeError>
pub fn wait_completion(self) -> Result<(), SubscribeNoticeError>
Sourcepub async fn wait_completion_async(self) -> Result<(), SubscribeNoticeError>
pub async fn wait_completion_async(self) -> Result<(), SubscribeNoticeError>
Wait asynchronously for subscribe completion and treat failing SubAck
return codes as completion errors.
§Errors
Returns an error if the subscribe fails before SubAck, or if SubAck
contains failing return codes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SubscribeNotice
impl !RefUnwindSafe for SubscribeNotice
impl Send for SubscribeNotice
impl Sync for SubscribeNotice
impl Unpin for SubscribeNotice
impl UnsafeUnpin for SubscribeNotice
impl !UnwindSafe for SubscribeNotice
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