pub struct SubscribeError { /* private fields */ }
Expand description
Error executing an MQTT subscribe
Implementations§
Source§impl SubscribeError
impl SubscribeError
Sourcepub fn new(kind: SubscribeErrorKind) -> Self
pub fn new(kind: SubscribeErrorKind) -> Self
Create a new SubscribeError
Sourcepub fn kind(&self) -> &SubscribeErrorKind
pub fn kind(&self) -> &SubscribeErrorKind
Return the corresponding SubscribeErrorKind
for this error
Trait Implementations§
Source§impl Clone for SubscribeError
impl Clone for SubscribeError
Source§fn clone(&self) -> SubscribeError
fn clone(&self) -> SubscribeError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SubscribeError
impl Debug for SubscribeError
Source§impl Display for SubscribeError
impl Display for SubscribeError
Source§impl Error for SubscribeError
impl Error for SubscribeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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