pub struct InitContainerBuilder { /* private fields */ }Implementations§
Source§impl InitContainerBuilder
impl InitContainerBuilder
Sourcepub fn with_systemd(self, should_use: bool) -> Self
pub fn with_systemd(self, should_use: bool) -> Self
Sets if systemd should be used for managing cgroups
Sourcepub fn as_sibling(self, as_sibling: bool) -> Self
pub fn as_sibling(self, as_sibling: bool) -> Self
Sets if the init process should be run as a child or a sibling of the calling process
pub fn with_detach(self, detached: bool) -> Self
pub fn with_no_pivot(self, no_pivot: bool) -> Self
Sourcepub fn build(self) -> Result<Container, LibcontainerError>
pub fn build(self) -> Result<Container, LibcontainerError>
Creates a new container
Auto Trait Implementations§
impl Freeze for InitContainerBuilder
impl !RefUnwindSafe for InitContainerBuilder
impl !Send for InitContainerBuilder
impl !Sync for InitContainerBuilder
impl Unpin for InitContainerBuilder
impl UnsafeUnpin for InitContainerBuilder
impl !UnwindSafe for InitContainerBuilder
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> 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