pub enum SubjectUrnError {
MissingUrnScheme,
TooFewSegments,
EmptySegment,
InvalidToolOrKindCharset,
ControlOrWhitespace,
}Expand description
Parse-time error returned by SubjectUrn::parse.
Variants§
MissingUrnScheme
Did not start with the literal urn: scheme.
TooFewSegments
Fewer than four colon-separated segments.
EmptySegment
One of <tool> / <kind> / <id> was empty.
InvalidToolOrKindCharset
<tool> or <kind> contained a character outside [a-z0-9-].
ControlOrWhitespace
Subject contained an ASCII control character or whitespace.
Trait Implementations§
Source§impl Clone for SubjectUrnError
impl Clone for SubjectUrnError
Source§fn clone(&self) -> SubjectUrnError
fn clone(&self) -> SubjectUrnError
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 SubjectUrnError
impl Debug for SubjectUrnError
Source§impl Display for SubjectUrnError
impl Display for SubjectUrnError
Source§impl Error for SubjectUrnError
impl Error for SubjectUrnError
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 SubjectUrnError
impl PartialEq for SubjectUrnError
Source§fn eq(&self, other: &SubjectUrnError) -> bool
fn eq(&self, other: &SubjectUrnError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SubjectUrnError
impl StructuralPartialEq for SubjectUrnError
Auto Trait Implementations§
impl Freeze for SubjectUrnError
impl RefUnwindSafe for SubjectUrnError
impl Send for SubjectUrnError
impl Sync for SubjectUrnError
impl Unpin for SubjectUrnError
impl UnsafeUnpin for SubjectUrnError
impl UnwindSafe for SubjectUrnError
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