pub struct ContainerArgs {Show 18 fields
pub container_type: ContainerType,
pub syscall: SyscallType,
pub spec: Rc<Spec>,
pub rootfs: PathBuf,
pub console_socket: Option<RawFd>,
pub notify_listener: NotifyListener,
pub preserve_fds: i32,
pub container: Option<Container>,
pub user_ns_config: Option<UserNamespaceConfig>,
pub cgroup_config: CgroupConfig,
pub detached: bool,
pub executor: Box<dyn Executor>,
pub no_pivot: bool,
pub stdin: Option<RawFd>,
pub stdout: Option<RawFd>,
pub stderr: Option<RawFd>,
pub as_sibling: bool,
pub pid_file: Option<PathBuf>,
}Fields§
§container_type: ContainerTypeIndicates if an init or a tenant container should be created
syscall: SyscallTypeInterface to operating system primitives
spec: Rc<Spec>OCI compliant runtime spec
rootfs: PathBufRoot filesystem of the container
console_socket: Option<RawFd>Socket to communicate the file descriptor of the ptty
notify_listener: NotifyListenerThe Unix Domain Socket to communicate container start
preserve_fds: i32File descriptors preserved/passed to the container init process.
container: Option<Container>Container state
user_ns_config: Option<UserNamespaceConfig>Options for new namespace creation
cgroup_config: CgroupConfigCgroup Manager Config
detached: boolIf the container is to be run in detached mode
executor: Box<dyn Executor>Manage the functions that actually run on the container
no_pivot: boolIf do not use pivot root to jail process inside rootfs
stdin: Option<RawFd>§stdout: Option<RawFd>§stderr: Option<RawFd>§as_sibling: bool§pid_file: Option<PathBuf>File path used to communicate the PID of the container process to the higher-level runtime.
Trait Implementations§
Source§impl Clone for ContainerArgs
impl Clone for ContainerArgs
Source§fn clone(&self) -> ContainerArgs
fn clone(&self) -> ContainerArgs
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 moreAuto Trait Implementations§
impl Freeze for ContainerArgs
impl !RefUnwindSafe for ContainerArgs
impl !Send for ContainerArgs
impl !Sync for ContainerArgs
impl Unpin for ContainerArgs
impl UnsafeUnpin for ContainerArgs
impl !UnwindSafe for ContainerArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more