Enum TopicError
#[non_exhaustive]pub enum TopicError {
Empty,
InvalidWildcard,
}Expand description
Error returned when constructing a Topic, TopicFilter, or their
owned counterparts.
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.
Trait Implementations§
§impl Clone for TopicError
impl Clone for TopicError
§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 more§impl Debug for TopicError
impl Debug for TopicError
§impl Display for TopicError
impl Display for TopicError
§impl Error for TopicError
impl Error for TopicError
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()
§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 TopicError
impl PartialEq for TopicError
impl Copy 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