Skip to main content

DockerLaunchConfig

Struct DockerLaunchConfig 

Source
pub struct DockerLaunchConfig { /* private fields */ }
Expand description

Runtime paths and image settings used to construct a Docker sandbox command.

Implementations§

Source§

impl DockerLaunchConfig

Source

pub fn new(image: String, sessions_root: PathBuf) -> Self

Create Docker launch configuration.

§Arguments
  • image - Docker image containing the Codex CLI.
  • sessions_root - Host directory where per-workspace sessions are stored.
§Returns

A Docker launch configuration.

Source

pub fn image(&self) -> &str

Return the Docker image.

§Returns

Docker image name used for the sandbox.

Source

pub fn with_image(&self, image: String) -> Self

Return a copy of this configuration with a different Docker image.

§Arguments
  • image - Docker image that should replace the current image.
§Returns

A Docker launch configuration with the same host paths and a new image.

Source

pub fn sessions_root(&self) -> &Path

Return the sessions root directory.

§Returns

Host directory containing per-workspace session directories.

Source

pub fn skills_path(&self) -> &Path

Return the host skills directory.

§Returns

Host directory mounted read-only as /root/.codex/skills.

Source

pub fn with_skills_path(&self, skills_path: PathBuf) -> Self

Return a copy of this configuration with a different host skills directory.

§Arguments
  • skills_path - Host directory containing Codex skills.
§Returns

A Docker launch configuration with the same image and sessions root.

Source

pub fn workspace_sessions_path(&self, workspace_name: &str) -> PathBuf

Return the host sessions path for one workspace.

§Arguments
  • workspace_name - Workspace name used as the host session directory key.
§Returns

Host path mounted as /root/.codex/sessions inside the sandbox.

Trait Implementations§

Source§

impl Clone for DockerLaunchConfig

Source§

fn clone(&self) -> DockerLaunchConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DockerLaunchConfig

Source§

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

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

impl Default for DockerLaunchConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for DockerLaunchConfig

Source§

impl PartialEq for DockerLaunchConfig

Source§

fn eq(&self, other: &DockerLaunchConfig) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for DockerLaunchConfig

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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.