pub enum SafeAadError {
DuplicateComponentId(ComponentId),
ItemsNotSortedAscending,
Codec(String),
}Available on (32-bit or 64-bit) and crate feature
extensions-draft-08 only.Expand description
Errors that can occur when building or parsing a SafeAad.
Variants§
DuplicateComponentId(ComponentId)
Two items share the same ComponentId.
ItemsNotSortedAscending
Items are not sorted in strictly-increasing order by ComponentId.
Codec(String)
Encoding or decoding failure.
Trait Implementations§
Source§impl Clone for SafeAadError
impl Clone for SafeAadError
Source§fn clone(&self) -> SafeAadError
fn clone(&self) -> SafeAadError
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 SafeAadError
impl Debug for SafeAadError
Source§impl Display for SafeAadError
impl Display for SafeAadError
Source§impl Error for SafeAadError
impl Error for SafeAadError
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 SafeAadError
impl PartialEq for SafeAadError
Source§fn eq(&self, other: &SafeAadError) -> bool
fn eq(&self, other: &SafeAadError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SafeAadError
impl StructuralPartialEq for SafeAadError
Auto Trait Implementations§
impl Freeze for SafeAadError
impl RefUnwindSafe for SafeAadError
impl Send for SafeAadError
impl Sync for SafeAadError
impl Unpin for SafeAadError
impl UnsafeUnpin for SafeAadError
impl UnwindSafe for SafeAadError
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more