Enum ParseTopicError
#[non_exhaustive]pub enum ParseTopicError {
Topic(TopicError),
Data(DataError),
}Expand description
Error returned when parsing a topic from an unvalidated string.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Topic(TopicError)
The string violates topic name or filter rules.
Data(DataError)
The string violates MQTT data encoding constraints.
Trait Implementations§
§impl Clone for ParseTopicError
impl Clone for ParseTopicError
§fn clone(&self) -> ParseTopicError
fn clone(&self) -> ParseTopicError
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 more§impl Debug for ParseTopicError
impl Debug for ParseTopicError
§impl Display for ParseTopicError
impl Display for ParseTopicError
§impl Error for ParseTopicError
impl Error for ParseTopicError
§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()
§impl From<DataError> for ParseTopicError
impl From<DataError> for ParseTopicError
§impl From<TopicError> for ParseTopicError
impl From<TopicError> for ParseTopicError
§fn from(value: TopicError) -> Self
fn from(value: TopicError) -> Self
Converts to this type from the input type.
§impl PartialEq for ParseTopicError
impl PartialEq for ParseTopicError
impl Copy for ParseTopicError
impl Eq for ParseTopicError
impl StructuralPartialEq for ParseTopicError
Auto Trait Implementations§
impl Freeze for ParseTopicError
impl RefUnwindSafe for ParseTopicError
impl Send for ParseTopicError
impl Sync for ParseTopicError
impl Unpin for ParseTopicError
impl UnwindSafe for ParseTopicError
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