pub struct AccessControlList { /* private fields */ }Expand description
Granular access-control list.
Trait Implementations§
Source§impl AccessControl for AccessControlList
impl AccessControl for AccessControlList
Source§fn load<M>(mm: &mut MemoryManager<M>) -> MemoryResult<Self>where
M: MemoryProvider,
fn load<M>(mm: &mut MemoryManager<M>) -> MemoryResult<Self>where
M: MemoryProvider,
Loads ACL state from persisted memory.
Source§fn granted(
&self,
id: &Self::Id,
table: TableFingerprint,
perm: TablePerms,
) -> bool
fn granted( &self, id: &Self::Id, table: TableFingerprint, perm: TablePerms, ) -> bool
Returns whether
id is granted perm on table.Source§fn granted_admin(&self, id: &Self::Id) -> bool
fn granted_admin(&self, id: &Self::Id) -> bool
Returns whether
id carries the admin bypass flag.Source§fn granted_manage_acl(&self, id: &Self::Id) -> bool
fn granted_manage_acl(&self, id: &Self::Id) -> bool
Returns whether
id carries the manage_acl flag.Source§fn granted_migrate(&self, id: &Self::Id) -> bool
fn granted_migrate(&self, id: &Self::Id) -> bool
Returns whether
id carries the migrate flag.Source§fn grant<M>(
&mut self,
id: Self::Id,
grant: PermGrant,
mm: &mut MemoryManager<M>,
) -> MemoryResult<()>where
M: MemoryProvider,
fn grant<M>(
&mut self,
id: Self::Id,
grant: PermGrant,
mm: &mut MemoryManager<M>,
) -> MemoryResult<()>where
M: MemoryProvider,
Applies a grant to
id, creating the entry if missing.Source§fn revoke<M>(
&mut self,
id: &Self::Id,
revoke: PermRevoke,
mm: &mut MemoryManager<M>,
) -> MemoryResult<()>where
M: MemoryProvider,
fn revoke<M>(
&mut self,
id: &Self::Id,
revoke: PermRevoke,
mm: &mut MemoryManager<M>,
) -> MemoryResult<()>where
M: MemoryProvider,
Applies a revoke to
id. No-op if id is not present.Source§fn remove_identity<M>(
&mut self,
id: &Self::Id,
mm: &mut MemoryManager<M>,
) -> MemoryResult<()>where
M: MemoryProvider,
fn remove_identity<M>(
&mut self,
id: &Self::Id,
mm: &mut MemoryManager<M>,
) -> MemoryResult<()>where
M: MemoryProvider,
Removes
id entirely from the ACL.Source§fn perms(&self, id: &Self::Id) -> IdentityPerms
fn perms(&self, id: &Self::Id) -> IdentityPerms
Source§fn identities(&self) -> Vec<(Self::Id, IdentityPerms)>
fn identities(&self) -> Vec<(Self::Id, IdentityPerms)>
Returns every identity in the ACL together with its perms.
Source§impl Clone for AccessControlList
impl Clone for AccessControlList
Source§fn clone(&self) -> AccessControlList
fn clone(&self) -> AccessControlList
Returns a duplicate of the value. Read more
1.0.0 · 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 AccessControlList
impl Debug for AccessControlList
Source§impl Default for AccessControlList
impl Default for AccessControlList
Source§fn default() -> AccessControlList
fn default() -> AccessControlList
Returns the “default value” for a type. Read more
Source§impl Encode for AccessControlList
impl Encode for AccessControlList
Source§impl PartialEq for AccessControlList
impl PartialEq for AccessControlList
impl Eq for AccessControlList
impl StructuralPartialEq for AccessControlList
Auto Trait Implementations§
impl Freeze for AccessControlList
impl RefUnwindSafe for AccessControlList
impl Send for AccessControlList
impl Sync for AccessControlList
impl Unpin for AccessControlList
impl UnsafeUnpin for AccessControlList
impl UnwindSafe for AccessControlList
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