pub enum TopicMatcherError {
EmptyTopicPath,
InvalidSegment {
segment: String,
position: usize,
},
InvalidUtf8 {
details: String,
},
}Expand description
Errors that can occur during topic matching operations
Variants§
EmptyTopicPath
Topic path provided for matching is empty
InvalidSegment
Invalid topic segment encountered during matching
Fields
InvalidUtf8
Topic path contains invalid UTF-8 characters
Implementations§
Source§impl TopicMatcherError
impl TopicMatcherError
Sourcepub fn invalid_segment(segment: impl Into<String>, position: usize) -> Self
pub fn invalid_segment(segment: impl Into<String>, position: usize) -> Self
Creates a new InvalidSegment error
Sourcepub fn invalid_utf8(details: impl Into<String>) -> Self
pub fn invalid_utf8(details: impl Into<String>) -> Self
Creates a new InvalidUtf8 error
Trait Implementations§
Source§impl Clone for TopicMatcherError
impl Clone for TopicMatcherError
Source§fn clone(&self) -> TopicMatcherError
fn clone(&self) -> TopicMatcherError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TopicMatcherError
impl Debug for TopicMatcherError
Source§impl Display for TopicMatcherError
impl Display for TopicMatcherError
impl Eq for TopicMatcherError
Source§impl Error for TopicMatcherError
impl Error for TopicMatcherError
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 From<TopicMatcherError> for TopicError
impl From<TopicMatcherError> for TopicError
Source§fn from(source: TopicMatcherError) -> Self
fn from(source: TopicMatcherError) -> Self
Converts to this type from the input type.
Source§impl From<TopicMatcherError> for TopicRouterError
impl From<TopicMatcherError> for TopicRouterError
Source§fn from(source: TopicMatcherError) -> Self
fn from(source: TopicMatcherError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TopicMatcherError
impl PartialEq for TopicMatcherError
Source§fn eq(&self, other: &TopicMatcherError) -> bool
fn eq(&self, other: &TopicMatcherError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TopicMatcherError
Auto Trait Implementations§
impl Freeze for TopicMatcherError
impl RefUnwindSafe for TopicMatcherError
impl Send for TopicMatcherError
impl Sync for TopicMatcherError
impl Unpin for TopicMatcherError
impl UnsafeUnpin for TopicMatcherError
impl UnwindSafe for TopicMatcherError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.