pub struct ContainerIsolationConfig {
pub base_image: Option<String>,
pub enable_gpu: bool,
pub extra_volumes: Vec<(String, String)>,
pub extra_env: HashMap<String, String>,
pub network_mode: Option<String>,
pub auto_remove: bool,
}Expand description
Container-specific isolation configuration
Fields§
§base_image: Option<String>Base image to use for containers
enable_gpu: boolWhether to enable GPU support
extra_volumes: Vec<(String, String)>Additional volume mounts
extra_env: HashMap<String, String>Additional environment variables
network_mode: Option<String>Network mode override
auto_remove: boolWhether to remove containers on exit
Trait Implementations§
Source§impl Clone for ContainerIsolationConfig
impl Clone for ContainerIsolationConfig
Source§fn clone(&self) -> ContainerIsolationConfig
fn clone(&self) -> ContainerIsolationConfig
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 ContainerIsolationConfig
impl Debug for ContainerIsolationConfig
Source§impl Default for ContainerIsolationConfig
impl Default for ContainerIsolationConfig
Source§impl<'de> Deserialize<'de> for ContainerIsolationConfig
impl<'de> Deserialize<'de> for ContainerIsolationConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ContainerIsolationConfig
impl RefUnwindSafe for ContainerIsolationConfig
impl Send for ContainerIsolationConfig
impl Sync for ContainerIsolationConfig
impl Unpin for ContainerIsolationConfig
impl UnsafeUnpin for ContainerIsolationConfig
impl UnwindSafe for ContainerIsolationConfig
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