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§
Sourcefn decide(
&self,
log: &GrantLogId,
grants: &[GrantId],
at_least: Revision,
) -> Result<DecisionReply, RevocationRefusal>
fn decide( &self, log: &GrantLogId, grants: &[GrantId], at_least: Revision, ) -> Result<DecisionReply, RevocationRefusal>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".