pub enum EntryKind {
Owner,
Authorization,
}Expand description
Which of the two roles an entry plays in the blob.
This is not a stored field. The word at that position counts the elements
in the entry’s subject, plus one; the owner entry has no subject and so stores
1. Reading it as a two-valued kind happens to work for an owner entry and
for a subject with one element, and silently mis-encodes a subject with two —
which is how a two-application ACL came out malformed.
Variants§
Owner
The first entry in the blob: no subject, no authorization group.
Authorization
A subsequent entry: a subject and an authorization group.
Trait Implementations§
impl Copy for EntryKind
impl Eq for EntryKind
impl StructuralPartialEq for EntryKind
Auto Trait Implementations§
impl Freeze for EntryKind
impl RefUnwindSafe for EntryKind
impl Send for EntryKind
impl Sync for EntryKind
impl Unpin for EntryKind
impl UnsafeUnpin for EntryKind
impl UnwindSafe for EntryKind
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