pub struct NoAccessControl;Expand description
ACL provider that grants every operation unconditionally.
Use this for runtimes that handle authorization externally or do not need access control.
Trait Implementations§
Source§impl AccessControl for NoAccessControl
impl AccessControl for NoAccessControl
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, _: &Self::Id, _: TableFingerprint, _: TablePerms) -> bool
fn granted(&self, _: &Self::Id, _: TableFingerprint, _: TablePerms) -> bool
Returns whether
id is granted perm on table.Source§fn granted_admin(&self, _: &Self::Id) -> bool
fn granted_admin(&self, _: &Self::Id) -> bool
Returns whether
id carries the admin bypass flag.Source§fn granted_manage_acl(&self, _: &Self::Id) -> bool
fn granted_manage_acl(&self, _: &Self::Id) -> bool
Returns whether
id carries the manage_acl flag.Source§fn granted_migrate(&self, _: &Self::Id) -> bool
fn granted_migrate(&self, _: &Self::Id) -> bool
Returns whether
id carries the migrate flag.Source§fn grant<M>(
&mut self,
_: Self::Id,
_: PermGrant,
_: &mut MemoryManager<M>,
) -> MemoryResult<()>where
M: MemoryProvider,
fn grant<M>(
&mut self,
_: Self::Id,
_: PermGrant,
_: &mut MemoryManager<M>,
) -> MemoryResult<()>where
M: MemoryProvider,
Applies a grant to
id, creating the entry if missing.Source§fn revoke<M>(
&mut self,
_: &Self::Id,
_: PermRevoke,
_: &mut MemoryManager<M>,
) -> MemoryResult<()>where
M: MemoryProvider,
fn revoke<M>(
&mut self,
_: &Self::Id,
_: PermRevoke,
_: &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,
_: &Self::Id,
_: &mut MemoryManager<M>,
) -> MemoryResult<()>where
M: MemoryProvider,
fn remove_identity<M>(
&mut self,
_: &Self::Id,
_: &mut MemoryManager<M>,
) -> MemoryResult<()>where
M: MemoryProvider,
Removes
id entirely from the ACL.Source§fn perms(&self, _: &Self::Id) -> IdentityPerms
fn perms(&self, _: &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 NoAccessControl
impl Clone for NoAccessControl
Source§fn clone(&self) -> NoAccessControl
fn clone(&self) -> NoAccessControl
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 NoAccessControl
impl Debug for NoAccessControl
Source§impl Default for NoAccessControl
impl Default for NoAccessControl
Source§fn default() -> NoAccessControl
fn default() -> NoAccessControl
Returns the “default value” for a type. Read more
Source§impl PartialEq for NoAccessControl
impl PartialEq for NoAccessControl
impl Eq for NoAccessControl
impl StructuralPartialEq for NoAccessControl
Auto Trait Implementations§
impl Freeze for NoAccessControl
impl RefUnwindSafe for NoAccessControl
impl Send for NoAccessControl
impl Sync for NoAccessControl
impl Unpin for NoAccessControl
impl UnsafeUnpin for NoAccessControl
impl UnwindSafe for NoAccessControl
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