Skip to main content

RevocationWriter

Trait RevocationWriter 

Source
pub trait RevocationWriter: Send + Sync {
    // Required method
    fn revoke<'life0, 'life1, 'async_trait>(
        &'life0 self,
        jti: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Origin-side revocation write. Held by SessionAuthority on the cold path.

Required Methods§

Source

fn revoke<'life0, 'life1, 'async_trait>( &'life0 self, jti: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Add jti to the revocation set. Idempotent — revoking an already-revoked jti is a no-op, not an error. Propagation to edge cheers_verify::RevocationReaders is asynchronous (see the module-level contract).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§