Skip to main content

CodeModeSession

Trait CodeModeSession 

Source
pub trait CodeModeSession: Send + Sync {
    // Required methods
    fn execute<'a>(
        &'a self,
        request: ExecuteRequest,
    ) -> CodeModeSessionResultFuture<'a, StartedCell>;
    fn wait<'a>(
        &'a self,
        request: WaitRequest,
    ) -> CodeModeSessionResultFuture<'a, WaitOutcome>;
    fn terminate<'a>(
        &'a self,
        cell_id: CellId,
    ) -> CodeModeSessionResultFuture<'a, WaitOutcome>;
    fn shutdown<'a>(&'a self) -> CodeModeSessionResultFuture<'a, ()>;
}
Expand description

A durable code-mode session owned by one Codex thread.

Cells executed in the same session share stored values. Separate sessions must keep those values isolated. Implementations may execute cells in-process or remotely.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§