pub enum SubscribeError {
RefusedByBroker,
TransceiverTaskTerminated,
}Expand description
An enumeration specifying what went wrong while trying to subscribe
to a topic using any of Client’s subscribe functions.
Variants§
RefusedByBroker
The broker denied the request to subscribe to the specified topic. No further information is provided.
TransceiverTaskTerminated
The client’s transceiver task terminated before the client could subscribe to a topic.
This happens when Client::disconnect() or
ClientShutdownHandle::disconnect()
is called before or while trying to subscribe to a topic.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SubscribeError
impl RefUnwindSafe for SubscribeError
impl Send for SubscribeError
impl Sync for SubscribeError
impl Unpin for SubscribeError
impl UnwindSafe for SubscribeError
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