Skip to main content

EpochRevocation

Trait EpochRevocation 

Source
pub trait EpochRevocation:
    Debug
    + Send
    + Sync {
    // Required method
    fn current<'life0, 'life1, 'async_trait>(
        &'life0 self,
        sub: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<i64, EpochRevocationError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Current per-account session_version lookup.

sub is the subject claim (ppnum_id ULID for human paths). For non-human subjects (AI agent, client_credentials), the engine never calls this — claims.sv is None on those paths and the gate short-circuits.

Required Methods§

Source

fn current<'life0, 'life1, 'async_trait>( &'life0 self, sub: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<i64, EpochRevocationError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§