pub enum TopicError {
Pattern(TopicPatternError),
Format(TopicFormatError),
Matcher(TopicMatcherError),
Router(TopicRouterError),
}
Expand description
Comprehensive error type for all topic-related operations
This enum aggregates all possible errors that can occur within the topic module, providing a single error type for the public API while maintaining detailed error information from each submodule.
Variants§
Pattern(TopicPatternError)
Topic pattern parsing or validation error
Format(TopicFormatError)
Topic formatting error when substituting parameters
Matcher(TopicMatcherError)
Topic matching operation error
Router(TopicRouterError)
Topic routing operation error
Trait Implementations§
Source§impl Clone for TopicError
impl Clone for TopicError
Source§fn clone(&self) -> TopicError
fn clone(&self) -> TopicError
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 TopicError
impl Debug for TopicError
Source§impl Display for TopicError
impl Display for TopicError
Source§impl Error for TopicError
impl Error for TopicError
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<TopicError> for MqttClientError
impl From<TopicError> for MqttClientError
Source§fn from(source: TopicError) -> MqttClientError
fn from(source: TopicError) -> MqttClientError
Converts to this type from the input type.
Source§impl From<TopicFormatError> for TopicError
impl From<TopicFormatError> for TopicError
Source§fn from(source: TopicFormatError) -> TopicError
fn from(source: TopicFormatError) -> TopicError
Converts to this type from the input type.
Source§impl From<TopicMatcherError> for TopicError
impl From<TopicMatcherError> for TopicError
Source§fn from(source: TopicMatcherError) -> TopicError
fn from(source: TopicMatcherError) -> TopicError
Converts to this type from the input type.
Source§impl From<TopicPatternError> for TopicError
impl From<TopicPatternError> for TopicError
Source§fn from(source: TopicPatternError) -> TopicError
fn from(source: TopicPatternError) -> TopicError
Converts to this type from the input type.
Source§impl From<TopicRouterError> for TopicError
impl From<TopicRouterError> for TopicError
Source§fn from(source: TopicRouterError) -> TopicError
fn from(source: TopicRouterError) -> TopicError
Converts to this type from the input type.
Source§impl PartialEq for TopicError
impl PartialEq for TopicError
impl Eq for TopicError
impl StructuralPartialEq for TopicError
Auto Trait Implementations§
impl Freeze for TopicError
impl RefUnwindSafe for TopicError
impl Send for TopicError
impl Sync for TopicError
impl Unpin for TopicError
impl UnwindSafe for TopicError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.