pub enum TopicError {
EmptyTopic,
InvalidCharacter {
topic: String,
allowed: &'static [char],
},
EmptySegment,
InvalidSelection(String),
InvalidSelectionValue {
segment: String,
value: String,
},
UnbracketedComma(String),
EmbeddedWildcard(String),
}Expand description
Errors that can occur when parsing and validating EventTopics.
Variants§
EmptyTopic
InvalidCharacter
EmptySegment
InvalidSelection(String)
InvalidSelectionValue
UnbracketedComma(String)
EmbeddedWildcard(String)
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 (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 TopicError
impl Debug for TopicError
Source§impl Display for TopicError
impl Display for TopicError
impl Eq for TopicError
Source§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()
Source§impl PartialEq for TopicError
impl PartialEq 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 UnsafeUnpin 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