Skip to main content

GrantDecisionSource

Trait GrantDecisionSource 

Source
pub trait GrantDecisionSource:
    Send
    + Sync
    + Debug {
    // Required method
    fn decide(
        &self,
        log: &GrantLogId,
        grants: &[GrantId],
        at_least: Revision,
    ) -> Result<DecisionReply, RevocationRefusal>;
}
Expand description

The cold-decision seam: Lys answers whether grants are revoked on an identified log at no earlier than at_least. Asked only outside the authority’s guard, during staging, never on a hot path.

Required Methods§

Source

fn decide( &self, log: &GrantLogId, grants: &[GrantId], at_least: Revision, ) -> Result<DecisionReply, RevocationRefusal>

The decisions on grants.

§Errors

The refusal naming why no current decision is available.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§