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