pub trait Checkpoint:
Send
+ Sync
+ 'static {
// Required method
fn check(&self, env: &Envelope, at: Stage) -> Verdict;
}Expand description
Revocation in flight: a ban, a revoked session, or a lockdown that arrives while a request is being handled. serve-net’s own checkpoint covers admission and the moment before the reply leaves; this one covers the points in between that only web-net knows.
A checkpoint backed by remote state fails closed (denies) when the remote cannot be reached.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".