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