pub enum Response {
Show 18 variants
Pong {
protocol_version: u32,
version: String,
},
Secret {
value: String,
},
Exists {
exists: bool,
},
Providers {
providers: Vec<String>,
},
Refreshed {
refreshed: bool,
provider: String,
},
Models {
models: Vec<ModelInfo>,
},
RunningModels {
running: Vec<RunningModel>,
},
Success {
success: bool,
},
ModelRunResult {
content: String,
stats: Option<Value>,
},
Error {
message: String,
},
Progress {
progress: ModelProgress,
},
StreamEnd {
success: bool,
error: Option<String>,
},
WatcherStatusResult {
status: WatcherStatusInfo,
},
JobSubmitted {
job: IpcJobStatus,
},
JobStatusResult {
job: Option<IpcJobStatus>,
},
JobListResult {
jobs: Vec<IpcJobStatus>,
},
JobCancelled {
cancelled: bool,
job_id: String,
},
JobStatsResult {
stats: IpcSchedulerStats,
},
}Expand description
Response from the daemon.
Variants§
Pong
Successful ping response with version info.
Fields
Secret
Secret value response.
§Security Note
The secret is transmitted as plain JSON over the Unix socket. This is secure because:
- Unix socket requires peer credential verification (same UID only)
- Socket permissions are 0600 (owner-only)
- Connection is local-only (no network exposure)
Exists
Secret existence check response.
Providers
Provider list response.
Refreshed
Secret refresh response.
Fields
Models
List of installed models.
RunningModels
List of currently running/loaded models.
Fields
§
running: Vec<RunningModel>Success
Generic success response.
ModelRunResult
Model run result with generated content.
Fields
Error
Error response.
Progress
Progress update for model operations (streaming).
Fields
§
progress: ModelProgressProgress details
StreamEnd
End of stream marker.
WatcherStatusResult
Watcher status response.
Fields
§
status: WatcherStatusInfoWatcher status info
JobSubmitted
Job submitted response with initial status.
Fields
§
job: IpcJobStatusThe job status
JobStatusResult
Single job status response.
Fields
§
job: Option<IpcJobStatus>The job status (None if job not found)
JobListResult
Job list response.
Fields
§
jobs: Vec<IpcJobStatus>List of jobs
JobCancelled
Job cancelled response.
JobStatsResult
Scheduler statistics response.
Fields
§
stats: IpcSchedulerStatsScheduler stats
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more