#[non_exhaustive]pub enum SessionOperation {
Show 17 variants
CreateSession,
HostContext,
MergeSession,
SessionDiff,
ProjectFiles,
SessionFiles,
StopTurn,
RebaseSession,
SessionSettings,
PublishSession,
ProjectStatus,
SyncProject,
Graphs,
GraphActions,
GenerateGraphProposal,
MessageImages,
Projects,
}Expand description
Operation a host may choose to serve to frontends that check
SessionService::supports first, such as remote control.
A frontend offers an operation only when the host reports it, so adding a variant never exposes an operation that an existing host has not opted into.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CreateSession
Creating a session in the active project through
SessionBackend::create_session.
HostContext
Describing the active project through
SessionBackend::host_context.
MergeSession
Merging a review-ready session through
SessionBackend::merge_session.
SessionDiff
Reading a session’s changes through
SessionBackend::get_session_diff.
ProjectFiles
Listing the files and directories in the active project’s checkout
through SessionBackend::list_project_files, for drafting a new
session before it has a worktree.
SessionFiles
Listing the files and directories in a session’s worktree through
SessionBackend::list_session_files.
StopTurn
Stopping a running turn through SessionBackend::stop_turn.
RebaseSession
Rebasing a session branch onto its base branch through
SessionBackend::rebase_session.
SessionSettings
Changing a session’s model, reasoning, style, or speed through
SessionBackend::update_session_settings.
PublishSession
Publishing a session to its existing branch, or under its default name
the first time, and creating or refreshing its review request through
SessionBackend::create_review_request.
ProjectStatus
Reporting the active project’s branch, its distance from upstream,
and its latest sync through SessionBackend::project_status.
SyncProject
Syncing the active project’s branch with its upstream through
SessionBackend::sync_project.
Graphs
Reading a session’s graph proposal and execution graphs through
SessionBackend::session_graphs, and summarizing them in
Session::graph.
GraphActions
Acting on a session’s execution graph as its inspector does, bound
to the snapshot a SessionBackend::session_graphs read returned,
through SessionBackend::act_on_session_graph.
GenerateGraphProposal
Generating a graph proposal for a task, as the host’s own graph
command does, through SessionBackend::generate_graph_proposal.
Nothing launches until a reply approves the proposal.
MessageImages
Sending a chat message with images through
SessionBackend::send_message_with_images.
Projects
Listing the host’s projects through SessionBackend::list_projects,
and serving a ProjectScope::Project to the methods that take a
ProjectScope, such as SessionBackend::project_sessions.
Trait Implementations§
Source§impl Clone for SessionOperation
impl Clone for SessionOperation
impl Copy for SessionOperation
Source§impl Debug for SessionOperation
impl Debug for SessionOperation
impl Eq for SessionOperation
Source§impl Hash for SessionOperation
impl Hash for SessionOperation
Source§impl PartialEq for SessionOperation
impl PartialEq for SessionOperation
impl StructuralPartialEq for SessionOperation
Auto Trait Implementations§
impl Forget for SessionOperation
impl Freeze for SessionOperation
impl Move for SessionOperation
impl RefUnwindSafe for SessionOperation
impl Send for SessionOperation
impl Sync for SessionOperation
impl Unpin for SessionOperation
impl UnsafeUnpin for SessionOperation
impl UnwindSafe for SessionOperation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.