pub struct CodexAppServerAdapter { /* private fields */ }Expand description
One version-pinned adapter around an existing SDK-owned runtime.
Implementations§
Source§impl CodexAppServerAdapter
impl CodexAppServerAdapter
pub fn new(runtime: Arc<dyn SdkRuntime>, cwd: impl Into<PathBuf>) -> Arc<Self> ⓘ
pub fn with_mode( runtime: Arc<dyn SdkRuntime>, cwd: impl Into<PathBuf>, mode: CodexCompatibilityMode, ) -> Arc<Self> ⓘ
Sourcepub fn with_mode_and_client_home(
runtime: Arc<dyn SdkRuntime>,
cwd: impl Into<PathBuf>,
codex_home: impl Into<PathBuf>,
mode: CodexCompatibilityMode,
) -> Arc<Self> ⓘ
pub fn with_mode_and_client_home( runtime: Arc<dyn SdkRuntime>, cwd: impl Into<PathBuf>, codex_home: impl Into<PathBuf>, mode: CodexCompatibilityMode, ) -> Arc<Self> ⓘ
Construct an adapter whose initialize response points the stock client at its isolated preference home. This path is frontend-only metadata; it never enters canonical history or native session exports.
pub fn namespace(&self) -> &'static str
pub fn enabled_methods(&self) -> BTreeSet<&'static str>
pub fn connection(self: &Arc<Self>) -> CodexConnection
Auto Trait Implementations§
impl !Freeze for CodexAppServerAdapter
impl !RefUnwindSafe for CodexAppServerAdapter
impl !UnwindSafe for CodexAppServerAdapter
impl Send for CodexAppServerAdapter
impl Sync for CodexAppServerAdapter
impl Unpin for CodexAppServerAdapter
impl UnsafeUnpin for CodexAppServerAdapter
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