pub trait CognitumRunGate: Send + Sync {
// Required method
fn check(&self, req: &RunRequest<'_>) -> Result<RunVerdict, RunRefusal>;
// Provided methods
fn claims(&self, _sha256: &str, _blake3: &str) -> bool { ... }
fn revoked(&self, _blake3: &str) -> bool { ... }
}Expand description
The gate a workload-host asks before it installs or starts a
Cognitum-origin cog.
Required Methods§
Sourcefn check(&self, req: &RunRequest<'_>) -> Result<RunVerdict, RunRefusal>
fn check(&self, req: &RunRequest<'_>) -> Result<RunVerdict, RunRefusal>
Decide req (hashes computed from the bytes that will run).
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".