pub enum SubjectRefError {
EmptyScheme,
EmptyKind,
EmptyId,
InvalidSchemeChar(char),
InvalidKindChar(char),
InvalidIdChar(char),
Malformed(String),
}Expand description
Re-export canonical pack value types used by core public structs.
Error returned when constructing or parsing a SubjectRef.
Variants§
EmptyScheme
Subject scheme is empty.
EmptyKind
Subject kind is empty.
EmptyId
Subject id is empty.
InvalidSchemeChar(char)
Subject scheme contains an invalid character.
InvalidKindChar(char)
Subject kind contains an invalid character.
InvalidIdChar(char)
Subject id contains an invalid character.
Malformed(String)
Subject ref string is not in canonical scheme://kind/id form.
Trait Implementations§
Source§impl Clone for SubjectRefError
impl Clone for SubjectRefError
Source§fn clone(&self) -> SubjectRefError
fn clone(&self) -> SubjectRefError
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 SubjectRefError
impl Debug for SubjectRefError
Source§impl Display for SubjectRefError
impl Display for SubjectRefError
impl Eq for SubjectRefError
Source§impl Error for SubjectRefError
impl Error for SubjectRefError
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 SubjectRefError
impl PartialEq for SubjectRefError
Source§fn eq(&self, other: &SubjectRefError) -> bool
fn eq(&self, other: &SubjectRefError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubjectRefError
Auto Trait Implementations§
impl Freeze for SubjectRefError
impl RefUnwindSafe for SubjectRefError
impl Send for SubjectRefError
impl Sync for SubjectRefError
impl Unpin for SubjectRefError
impl UnsafeUnpin for SubjectRefError
impl UnwindSafe for SubjectRefError
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
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§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.