pub struct ActiveAuthorizer { /* private fields */ }Expand description
Engine authorizer reading live committed policy state (default-deny in
PolicyEnforced mode). Implemented against the replicated keyspace.
Implementations§
Trait Implementations§
Source§impl Authorizer for ActiveAuthorizer
impl Authorizer for ActiveAuthorizer
Authorizes writing a record under
label against live policy state. Read moreAuthorizes writing a relationship of
rel_type against live policy. Read moreSource§fn current_generation(&self) -> Result<u64, String>
fn current_generation(&self) -> Result<u64, String>
Current committed policy generation; commit revalidates against this. Read more
Admitted checks must use this transaction, not acquire another store
view while writer/map locks are held.
cap is the admitted predecessor. Read moreTransactional counterpart of
Authorizer::authorize_rel_type. Read moreSource§fn current_generation_in_txn(
&self,
txn: &Txn<'_>,
cap: u64,
) -> Result<u64, String>
fn current_generation_in_txn( &self, txn: &Txn<'_>, cap: u64, ) -> Result<u64, String>
Transactional counterpart of
Authorizer::current_generation. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ActiveAuthorizer
impl !UnwindSafe for ActiveAuthorizer
impl Freeze for ActiveAuthorizer
impl Send for ActiveAuthorizer
impl Sync for ActiveAuthorizer
impl Unpin for ActiveAuthorizer
impl UnsafeUnpin for ActiveAuthorizer
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