pub struct UnsubscribeError { /* private fields */ }
Expand description
Error executing an MQTT unsubscribe
Implementations§
Source§impl UnsubscribeError
impl UnsubscribeError
Sourcepub fn new(kind: UnsubscribeErrorKind) -> Self
pub fn new(kind: UnsubscribeErrorKind) -> Self
Create a new UnsubscribeError
Sourcepub fn kind(&self) -> &UnsubscribeErrorKind
pub fn kind(&self) -> &UnsubscribeErrorKind
Return the corresponding UnsubscribeErrorKind
for this error
Trait Implementations§
Source§impl Clone for UnsubscribeError
impl Clone for UnsubscribeError
Source§fn clone(&self) -> UnsubscribeError
fn clone(&self) -> UnsubscribeError
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 UnsubscribeError
impl Debug for UnsubscribeError
Source§impl Display for UnsubscribeError
impl Display for UnsubscribeError
Source§impl Error for UnsubscribeError
impl Error for UnsubscribeError
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 UnsubscribeError
impl RefUnwindSafe for UnsubscribeError
impl Send for UnsubscribeError
impl Sync for UnsubscribeError
impl Unpin for UnsubscribeError
impl UnwindSafe for UnsubscribeError
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