pub enum PrincipalFactError {
InvalidName,
InvalidValue,
LimitExceeded,
Duplicate,
InvalidEncoding,
}Expand description
Safe failure to construct a bounded principal-fact set.
Variants§
InvalidName
A fact name is not a compiler-visible source identifier.
InvalidValue
A fact value is not one scalar or one bounded scalar set.
LimitExceeded
A count or encoded byte ceiling was exceeded.
Duplicate
A fact or set member occurs more than once.
InvalidEncoding
Canonical encoding failed or overflowed.
Trait Implementations§
Source§impl Clone for PrincipalFactError
impl Clone for PrincipalFactError
impl Copy for PrincipalFactError
Source§impl Debug for PrincipalFactError
impl Debug for PrincipalFactError
Source§impl Display for PrincipalFactError
impl Display for PrincipalFactError
impl Eq for PrincipalFactError
Source§impl Error for PrincipalFactError
impl Error for PrincipalFactError
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 PrincipalFactError
impl PartialEq for PrincipalFactError
impl StructuralPartialEq for PrincipalFactError
Auto Trait Implementations§
impl Freeze for PrincipalFactError
impl RefUnwindSafe for PrincipalFactError
impl Send for PrincipalFactError
impl Sync for PrincipalFactError
impl Unpin for PrincipalFactError
impl UnsafeUnpin for PrincipalFactError
impl UnwindSafe for PrincipalFactError
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