pub enum TopicParseError {
Empty,
WildcardInTopicName(String),
WildcardNotAlone(String),
WildcardNotLast(String),
SharedSubscriptionNotAllowed(String),
InvalidShareName(String),
SharedSubscriptionTooShort(String),
}
Expand description
Error when parsing a topic name or topic filter
Variants§
Empty
The topic name or topic filter is empty
WildcardInTopicName(String)
The topic name contains a wildcard character (# or +)
WildcardNotAlone(String)
A wildcard character (# or +) does not occupy an entire level of the topic filter
WildcardNotLast(String)
A multi-level wildcard (#) is not the last character of the topic filter
The topic name’s first level is $share when it is not a shared subscription topic filter
The share name of a shared subscription topic filter is empty or contains a wildcard character (# or +)
A shared subscription topic filter must contain at least three levels
Trait Implementations§
Source§impl Debug for TopicParseError
impl Debug for TopicParseError
Source§impl Display for TopicParseError
impl Display for TopicParseError
Source§impl Error for TopicParseError
impl Error for TopicParseError
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()
Auto Trait Implementations§
impl Freeze for TopicParseError
impl RefUnwindSafe for TopicParseError
impl Send for TopicParseError
impl Sync for TopicParseError
impl Unpin for TopicParseError
impl UnwindSafe for TopicParseError
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