pub enum Response {
Pong {
version: String,
},
Secret {
value: String,
},
Exists {
exists: bool,
},
Providers {
providers: Vec<String>,
},
Models {
models: Vec<ModelInfo>,
},
RunningModels {
running: Vec<RunningModel>,
},
Success {
success: bool,
},
Error {
message: String,
},
}Expand description
Response from the daemon.
Variants§
Pong
Successful ping response.
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.
Models
List of installed models.
RunningModels
List of currently running/loaded models.
Fields
§
running: Vec<RunningModel>Success
Generic success response.
Error
Error response.
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