pub enum RpcResponse {
CommandAccepted {
command_id: CommandId,
session_id: SessionId,
},
CommandCompleted {
session_id: SessionId,
},
SessionSelected {
state: SessionStateView,
resnapshot_required: bool,
},
Sessions {
sessions: Vec<SessionListItem>,
},
State {
state: SessionStateView,
},
Snapshot {
snapshot: SessionSnapshotPage,
},
Stats {
stats: SessionStatsView,
},
Tree {
tree: SessionTreeView,
},
Models {
models: Vec<ModelRef>,
},
McpServers {
servers: Vec<McpServerView>,
},
Error {
error: RpcError,
},
}Expand description
Successful or failed response payload correlated to one request.
Variants§
CommandAccepted
An owned prompt/approval command was accepted.
Fields
CommandCompleted
A synchronous canonical mutation completed.
SessionSelected
The active session changed.
Fields
§
state: SessionStateViewCompact authoritative state.
Sessions
Durable session catalog result.
Fields
§
sessions: Vec<SessionListItem>Stable latest-updated ordering from SessionCatalog.
State
Compact selected-session state.
Fields
§
state: SessionStateViewAuthoritative host state.
Snapshot
Bounded canonical replay page.
Fields
§
snapshot: SessionSnapshotPageDurable records and tail cursor.
Stats
Rebuildable transcript statistics.
Fields
§
stats: SessionStatsViewAggregate counts.
Tree
Append-only branch tree.
Fields
§
tree: SessionTreeViewStable branch projection.
Models
Registered models.
McpServers
Safe MCP lifecycle and frozen-catalog projection.
Fields
§
servers: Vec<McpServerView>Servers in canonical server-ID order.
Error
Stable safe request failure.
Trait Implementations§
Source§impl Clone for RpcResponse
impl Clone for RpcResponse
Source§impl Debug for RpcResponse
impl Debug for RpcResponse
Source§impl PartialEq for RpcResponse
impl PartialEq for RpcResponse
Source§impl Serialize for RpcResponse
impl Serialize for RpcResponse
impl StructuralPartialEq for RpcResponse
Auto Trait Implementations§
impl Freeze for RpcResponse
impl RefUnwindSafe for RpcResponse
impl Send for RpcResponse
impl Sync for RpcResponse
impl Unpin for RpcResponse
impl UnsafeUnpin for RpcResponse
impl UnwindSafe for RpcResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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