pub enum TryPublishError {
QueueFull,
TransceiverTaskTerminated,
}Expand description
An enumeration specifying what went wrong while trying to publish
a message using Client::try_publish().
Variants§
QueueFull
The queue was full and thus the message was not sent.
TransceiverTaskTerminated
The client’s transceiver task terminated and thus the message might not have been transmitted to the broker.
This happens when Client::disconnect() or
ClientShutdownHandle::disconnect()
is called before the message could have been successfully transmitted by the
client or acknowledged by the server.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TryPublishError
impl RefUnwindSafe for TryPublishError
impl Send for TryPublishError
impl Sync for TryPublishError
impl Unpin for TryPublishError
impl UnwindSafe for TryPublishError
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