pub struct DisconnectError { /* private fields */ }
Expand description
Error executing an MQTT disconnect
Implementations§
Source§impl DisconnectError
impl DisconnectError
Sourcepub fn new(kind: DisconnectErrorKind) -> Self
pub fn new(kind: DisconnectErrorKind) -> Self
Create a new DisconnectError
Sourcepub fn kind(&self) -> &DisconnectErrorKind
pub fn kind(&self) -> &DisconnectErrorKind
Return the corresponding DisconnectErrorKind
for this error
Trait Implementations§
Source§impl Clone for DisconnectError
impl Clone for DisconnectError
Source§fn clone(&self) -> DisconnectError
fn clone(&self) -> DisconnectError
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 DisconnectError
impl Debug for DisconnectError
Source§impl Display for DisconnectError
impl Display for DisconnectError
Source§impl Error for DisconnectError
impl Error for DisconnectError
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()
Source§impl From<ClientError> for DisconnectError
impl From<ClientError> for DisconnectError
Source§impl From<DisconnectError> for SessionExitError
impl From<DisconnectError> for SessionExitError
Source§fn from(_: DisconnectError) -> Self
fn from(_: DisconnectError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DisconnectError
impl RefUnwindSafe for DisconnectError
impl Send for DisconnectError
impl Sync for DisconnectError
impl Unpin for DisconnectError
impl UnwindSafe for DisconnectError
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