pub enum SubjectError {
EmptySegment,
InvalidCharset {
segment: String,
},
SeparatorInSegment,
TrailingSeparator,
LeadingSeparator,
ConsecutiveSeparators,
WildcardInConcreteSubject,
WildcardMultiNotLast,
EmptySubject,
}Expand description
Errors raised while constructing or parsing Subject /
SubjectPattern.
Variants§
EmptySegment
A segment was empty.
InvalidCharset
A segment contained characters outside a-zA-Z0-9_-.
SeparatorInSegment
A segment contained a . (separator belongs between segments).
TrailingSeparator
The subject had a trailing ..
LeadingSeparator
The subject had a leading ..
ConsecutiveSeparators
The subject had two consecutive . separators.
WildcardInConcreteSubject
A concrete subject contained + or #.
WildcardMultiNotLast
A pattern had # before the last segment.
EmptySubject
The subject was the empty string.
Trait Implementations§
Source§impl Clone for SubjectError
impl Clone for SubjectError
Source§fn clone(&self) -> SubjectError
fn clone(&self) -> SubjectError
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 SubjectError
impl Debug for SubjectError
Source§impl Display for SubjectError
impl Display for SubjectError
impl Eq for SubjectError
Source§impl Error for SubjectError
impl Error for SubjectError
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<SubjectError> for Error
impl From<SubjectError> for Error
Source§fn from(e: SubjectError) -> Self
fn from(e: SubjectError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SubjectError
impl PartialEq for SubjectError
impl StructuralPartialEq for SubjectError
Auto Trait Implementations§
impl Freeze for SubjectError
impl RefUnwindSafe for SubjectError
impl Send for SubjectError
impl Sync for SubjectError
impl Unpin for SubjectError
impl UnsafeUnpin for SubjectError
impl UnwindSafe for SubjectError
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