Skip to main content

EntryValidator

Trait EntryValidator 

Source
pub trait EntryValidator:
    Send
    + Sync
    + 'static {
    // Required method
    fn validate(&self, vm_id: &str) -> ValidationResult;
}
Expand description

Per-entry health probe, run synchronously on every WarmPool::acquire and after every successful refill spawn.

Implementations typically do a sidecar GET /health over the entry’s vsock socket or a TCP probe to a known guest port. Anything that signals “this VM is actually serving requests right now,” not just “Firecracker thinks it’s alive.”

Required Methods§

Source

fn validate(&self, vm_id: &str) -> ValidationResult

Probe an entry’s health. Called synchronously — return quickly, or the acquire path stalls.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§