pub enum RpcRequest {
Show 33 variants
SendInput {
viewer_id: u32,
data: Vec<u8>,
},
CreateWindow {
session_id: u32,
},
CloseWindow {
session_id: u32,
window_id: u32,
},
FocusWindow {
session_id: u32,
window_id: u32,
},
SpawnShell {
session_id: u32,
pane_id: u32,
cwd: String,
},
LoadModel {
model_ref: String,
},
UnloadModel {
model_ref: String,
},
SpawnServerChat {
session_id: u32,
model_ref: String,
cols: u16,
rows: u16,
pane_id: u32,
gen_defaults: Option<GenerationDefaults>,
},
LocalPrivateChat {
model_ref: String,
cols: u16,
rows: u16,
resume_uuid: Option<String>,
gen_defaults: Option<GenerationDefaults>,
},
DeleteConversation {
uuid: String,
model_ref: String,
},
ListConversations {
model_ref: String,
},
ServiceStart {
name: String,
},
ServiceStop {
name: String,
},
ServiceRestart {
name: String,
},
ServiceInstall,
ServiceStopAll,
ServiceStartAll,
WorkerDestroySandbox {
sandbox_id: String,
},
WorkerExecSync {
sandbox_id: String,
container_id: String,
cmd: Vec<String>,
},
WorkerImageList,
WorkerImagePull {
image: String,
},
WorkerImageRemove {
image: String,
},
WorkerCreateSandbox {
hostname: String,
backend: String,
gpu: bool,
},
WorkerCreateContainer {
sandbox_id: String,
image: String,
cmd: Vec<String>,
tty: bool,
},
WorkerStartContainer {
container_id: String,
},
WorkerStopContainer {
container_id: String,
},
WorkerRemoveContainer {
container_id: String,
},
AttachContainer {
sandbox_id: String,
container_id: String,
cols: u16,
rows: u16,
},
CloneModel {
url: String,
name: String,
},
PullModel {
model_ref: String,
},
PushModel {
model_ref: String,
},
FetchModelStatus,
Quit,
}Expand description
Pure typed enum — no ZMQ types, no capnp types, WASM-safe.
Variants§
SendInput
CreateWindow
CloseWindow
FocusWindow
SpawnShell
LoadModel
UnloadModel
SpawnServerChat
Fields
§
gen_defaults: Option<GenerationDefaults>LocalPrivateChat
Client-local private chat — no server round-trip required.
If resume_uuid is Some, resumes an existing conversation.
Fields
§
gen_defaults: Option<GenerationDefaults>DeleteConversation
Delete a private conversation (UUID as string).
ListConversations
Request the conversation list for a model (shell handler populates it).
ServiceStart
ServiceStop
ServiceRestart
ServiceInstall
ServiceStopAll
ServiceStartAll
WorkerDestroySandbox
WorkerExecSync
WorkerImageList
WorkerImagePull
WorkerImageRemove
WorkerCreateSandbox
WorkerCreateContainer
WorkerStartContainer
WorkerStopContainer
WorkerRemoveContainer
AttachContainer
CloneModel
PullModel
PushModel
FetchModelStatus
Quit
Trait Implementations§
Source§impl Debug for RpcRequest
impl Debug for RpcRequest
Auto Trait Implementations§
impl Freeze for RpcRequest
impl RefUnwindSafe for RpcRequest
impl Send for RpcRequest
impl Sync for RpcRequest
impl Unpin for RpcRequest
impl UnsafeUnpin for RpcRequest
impl UnwindSafe for RpcRequest
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more