pub struct StaticPolicyEngine { /* private fields */ }Implementations§
Source§impl StaticPolicyEngine
impl StaticPolicyEngine
Sourcepub fn revoke_generation(&self, below: u64)
pub fn revoke_generation(&self, below: u64)
Revoke all tokens with generation <= below.
Note: tokens issued concurrently during this call may land in the revoked range. This is acceptable for StaticPolicyEngine (test/dev). A production engine should use a lock or AcqRel ordering.
pub fn current_generation(&self) -> u64
Trait Implementations§
Source§impl Debug for StaticPolicyEngine
impl Debug for StaticPolicyEngine
Source§impl Default for StaticPolicyEngine
impl Default for StaticPolicyEngine
Source§fn default() -> StaticPolicyEngine
fn default() -> StaticPolicyEngine
Returns the “default value” for a type. Read more
Source§impl PolicyEngine for StaticPolicyEngine
impl PolicyEngine for StaticPolicyEngine
fn issue_token( &self, pack: &VerticalPackManifest, agent_id: &str, now_epoch_s: u64, ttl_s: u64, ) -> Result<CapabilityToken, PolicyError>
fn revoke_token(&self, token_id: &str) -> Result<(), PolicyError>
fn revoke_generation(&self, below: u64)
fn check_tool_call(&self, _request: &PolicyRequest) -> PolicyDecision
Auto Trait Implementations§
impl !Freeze for StaticPolicyEngine
impl RefUnwindSafe for StaticPolicyEngine
impl Send for StaticPolicyEngine
impl Sync for StaticPolicyEngine
impl Unpin for StaticPolicyEngine
impl UnsafeUnpin for StaticPolicyEngine
impl UnwindSafe for StaticPolicyEngine
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