pub struct IsolationOptions {Show 13 fields
pub session: Option<String>,
pub image: Option<String>,
pub volumes: Vec<String>,
pub mounts: Vec<String>,
pub env: Vec<String>,
pub privileged: bool,
pub endpoint: Option<String>,
pub detached: bool,
pub user: Option<String>,
pub keep_alive: bool,
pub auto_remove_docker_container: bool,
pub shell: String,
pub log_path: Option<PathBuf>,
}Expand description
Options for isolation
Fields§
§session: Option<String>Session name
image: Option<String>Docker image
volumes: Vec<String>Docker bind mounts/volumes (-v/–volume)
mounts: Vec<String>Docker –mount specs
env: Vec<String>Docker environment variables (-e/–env, KEY=VALUE)
privileged: boolRun docker container in privileged mode
endpoint: Option<String>SSH endpoint
detached: boolRun in detached mode
user: Option<String>User to run command as
keep_alive: boolKeep environment alive after command exits
auto_remove_docker_container: boolAuto-remove docker container after exit
shell: StringShell to use in isolation environments: auto, bash, zsh, sh
log_path: Option<PathBuf>Log path where isolation backends should append live output
Trait Implementations§
Source§impl Clone for IsolationOptions
impl Clone for IsolationOptions
Source§fn clone(&self) -> IsolationOptions
fn clone(&self) -> IsolationOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IsolationOptions
impl Debug for IsolationOptions
Auto Trait Implementations§
impl Freeze for IsolationOptions
impl RefUnwindSafe for IsolationOptions
impl Send for IsolationOptions
impl Sync for IsolationOptions
impl Unpin for IsolationOptions
impl UnsafeUnpin for IsolationOptions
impl UnwindSafe for IsolationOptions
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