pub enum PublishError {
ConnectionFailed,
MessageTooLarge,
UnsupportedQoS,
Timeout,
BufferFull,
InvalidDestination,
}Expand description
Error that can occur during connector publishing
Uses an enum instead of String for better performance in no_std environments
and to enable defmt logging support in Embassy.
Variants§
ConnectionFailed
Failed to connect to endpoint
MessageTooLarge
Message payload too large for buffer
UnsupportedQoS
Quality of Service level not supported
Timeout
Network or operation timeout occurred
BufferFull
Buffer full, cannot queue message
InvalidDestination
Invalid destination (topic, segment, endpoint)
Trait Implementations§
Source§impl Clone for PublishError
impl Clone for PublishError
Source§fn clone(&self) -> PublishError
fn clone(&self) -> PublishError
Returns a duplicate 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
Available on crate feature std only.
impl Display for PublishError
Available on crate feature
std only.Source§impl Error for PublishError
Available on crate feature std only.
impl Error for PublishError
Available on crate feature
std only.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 PartialEq for PublishError
impl PartialEq for PublishError
impl Copy for PublishError
impl Eq for PublishError
impl StructuralPartialEq for PublishError
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