pub struct K1Access { /* private fields */ }Implementations§
Source§impl K1Access
impl K1Access
pub fn open( root: &Path, ordering: Arc<K1TxnOrdering>, peering: Arc<K1Peering>, groups: Arc<K1Groups>, ) -> Result<Self, String>
pub fn create( &self, target: Target, authorizations: Authorizations, ) -> Result<AccessRevision, String>
pub fn check( &self, principal: RequestPrincipal, access_id: AccessId, expected_subsystem: SubsystemId, ) -> Result<AccessCheck, String>
pub fn list_user( &self, principal: RequestPrincipal, expected_subsystem: SubsystemId, ) -> Result<Vec<AccessId>, String>
pub fn list_group( &self, principal: RequestPrincipal, group: GroupId, expected_subsystem: SubsystemId, ) -> Result<Vec<AccessId>, String>
Auto Trait Implementations§
impl Freeze for K1Access
impl RefUnwindSafe for K1Access
impl Send for K1Access
impl Sync for K1Access
impl Unpin for K1Access
impl UnsafeUnpin for K1Access
impl UnwindSafe for K1Access
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