pub enum AccessGrantsError {
DuplicatePrincipal {
principal_id: PrincipalId,
},
TooManyEntries {
entries: usize,
},
TooManyPrincipalBytes {
principal_bytes: usize,
},
EmptyRights {
principal_id: PrincipalId,
},
}Expand description
Why a grant map was rejected.
Variants§
DuplicatePrincipal
A principal appeared more than once.
Fields
§
principal_id: PrincipalIdThe repeated principal.
TooManyEntries
More principals than MAX_ACCESS_GRANT_ENTRIES.
TooManyPrincipalBytes
More principal id bytes than MAX_ACCESS_GRANTS_PRINCIPAL_BYTES.
EmptyRights
An entry granted nothing.
Fields
§
principal_id: PrincipalIdThe principal with the empty entry.
Trait Implementations§
Source§impl Clone for AccessGrantsError
impl Clone for AccessGrantsError
Source§impl Debug for AccessGrantsError
impl Debug for AccessGrantsError
Source§impl Display for AccessGrantsError
impl Display for AccessGrantsError
impl Eq for AccessGrantsError
Source§impl Error for AccessGrantsError
impl Error for AccessGrantsError
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 AccessGrantsError
impl PartialEq for AccessGrantsError
impl StructuralPartialEq for AccessGrantsError
Auto Trait Implementations§
impl Freeze for AccessGrantsError
impl RefUnwindSafe for AccessGrantsError
impl Send for AccessGrantsError
impl Sync for AccessGrantsError
impl Unpin for AccessGrantsError
impl UnsafeUnpin for AccessGrantsError
impl UnwindSafe for AccessGrantsError
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