pub enum PublicAcl {
Parsed(AclBlob),
Raw(Vec<u8>),
}Expand description
A public ACL: understood, or preserved as-is.
Variants§
Implementations§
Source§impl PublicAcl
impl PublicAcl
pub fn parse(data: &[u8]) -> Self
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn trusted_paths(&self) -> Vec<&str>
pub fn trusted_paths(&self) -> Vec<&str>
Applications the ACL restricts decryption to. Empty means either “any application” or an ACL this build did not parse.
Trait Implementations§
impl Eq for PublicAcl
impl StructuralPartialEq for PublicAcl
Auto Trait Implementations§
impl Freeze for PublicAcl
impl RefUnwindSafe for PublicAcl
impl Send for PublicAcl
impl Sync for PublicAcl
impl Unpin for PublicAcl
impl UnsafeUnpin for PublicAcl
impl UnwindSafe for PublicAcl
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