pub enum StatusEvent {
Starting,
LoadingModel {
phase: LoadPhase,
},
Capabilities {
backend: String,
v2: bool,
vision: bool,
audio: bool,
tools: bool,
thinking: bool,
embed: bool,
accelerator: String,
gpu_layers: u32,
},
Ready,
Restarting {
phase: LoadPhase,
},
Draining,
}Expand description
One daemon-wide status event. Published through a broadcast channel to admin-socket subscribers.
Variants§
Starting
Daemon process is up; admin socket is bound. No backend work yet.
LoadingModel
Model is being prepared. Carries a phase describing the
sub-stage and (for download) progress numbers.
Fields
Capabilities
Backend capability snapshot — emitted once after the backend is
constructed and before Ready. Lets admin subscribers (e.g.
inferdctl doctor, IDE plugins) discover hardware-acceleration
posture, multimodal support, and tools / thinking support
without trial-and-error. Backwards-additive on the admin wire
(older subscribers ignore unknown status values).
Fields
Ready
Inference socket is bound and accepting connections.
Restarting
Previously-ready daemon is reloading. Inference socket has
closed; new connections refused. Carries the same phase enum
as LoadingModel so subscribers can show progress for the
reload.
Draining
Daemon received a shutdown signal. Existing requests finish; new requests rejected. Daemon will exit shortly after this frame.
Trait Implementations§
Source§impl Clone for StatusEvent
impl Clone for StatusEvent
Source§fn clone(&self) -> StatusEvent
fn clone(&self) -> StatusEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more