Skip to main content

RpcRequest

Enum RpcRequest 

Source
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

Fields

§viewer_id: u32
§data: Vec<u8>
§

CreateWindow

Fields

§session_id: u32
§

CloseWindow

Fields

§session_id: u32
§window_id: u32
§

FocusWindow

Fields

§session_id: u32
§window_id: u32
§

SpawnShell

Fields

§session_id: u32
§pane_id: u32
§

LoadModel

Fields

§model_ref: String
§

UnloadModel

Fields

§model_ref: String
§

SpawnServerChat

Fields

§session_id: u32
§model_ref: String
§cols: u16
§rows: u16
§pane_id: u32
§

LocalPrivateChat

Client-local private chat — no server round-trip required. If resume_uuid is Some, resumes an existing conversation.

Fields

§model_ref: String
§cols: u16
§rows: u16
§resume_uuid: Option<String>
§

DeleteConversation

Delete a private conversation (UUID as string).

Fields

§uuid: String
§model_ref: String
§

ListConversations

Request the conversation list for a model (shell handler populates it).

Fields

§model_ref: String
§

ServiceStart

Fields

§name: String
§

ServiceStop

Fields

§name: String
§

ServiceRestart

Fields

§name: String
§

ServiceInstall

§

ServiceStopAll

§

ServiceStartAll

§

WorkerDestroySandbox

Fields

§sandbox_id: String
§

WorkerExecSync

Fields

§sandbox_id: String
§container_id: String
§

WorkerImageList

§

WorkerImagePull

Fields

§image: String
§

WorkerImageRemove

Fields

§image: String
§

WorkerCreateSandbox

Fields

§hostname: String
§backend: String
§gpu: bool
§

WorkerCreateContainer

Fields

§sandbox_id: String
§image: String
§tty: bool
§

WorkerStartContainer

Fields

§container_id: String
§

WorkerStopContainer

Fields

§container_id: String
§

WorkerRemoveContainer

Fields

§container_id: String
§

AttachContainer

Fields

§sandbox_id: String
§container_id: String
§cols: u16
§rows: u16
§

CloneModel

Fields

§name: String
§

PullModel

Fields

§model_ref: String
§

PushModel

Fields

§model_ref: String
§

FetchModelStatus

§

Quit

Trait Implementations§

Source§

impl Debug for RpcRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for RpcRequest

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.