pub struct JailerBuilder<'j> { /* private fields */ }
Expand description
Builder for Jailer
instances.
Implementations§
Source§impl<'j> JailerBuilder<'j>
impl<'j> JailerBuilder<'j>
Sourcepub fn numa_node(self, numa_node: i32) -> Self
pub fn numa_node(self, numa_node: i32) -> Self
NumaNode represents the NUMA node the process gets assigned to.
Sourcepub fn exec_file<P>(self, exec_file: P) -> Self
pub fn exec_file<P>(self, exec_file: P) -> Self
The path to the Firecracker binary that will be exec-ed by the jailer.
The user can provide a path to any binary, but the interaction with the jailer is mostly Firecracker specific.
Sourcepub fn jailer_binary<P>(self, jailer_binary: P) -> Self
pub fn jailer_binary<P>(self, jailer_binary: P) -> Self
Specifies the jailer binary to be used for setting up the Firecracker VM jail.
If the value contains no path separators, it will use the PATH environment variable to get the absolute path of the binary. If the value contains path separators, the value will be used directly to exec the jailer. This follows the same conventions as Golang’s os/exec.Command. If not specified it defaults to “jailer”.
Sourcepub fn chroot_base_dir<P>(self, chroot_base_dir: P) -> Self
pub fn chroot_base_dir<P>(self, chroot_base_dir: P) -> Self
The base folder where chroot jails are built.
The default is /srv/jailer
.
Sourcepub fn mode(self, mode: JailerMode<'j>) -> Self
pub fn mode(self, mode: JailerMode<'j>) -> Self
The mode of the jailer process.
Trait Implementations§
Auto Trait Implementations§
impl<'j> Freeze for JailerBuilder<'j>
impl<'j> RefUnwindSafe for JailerBuilder<'j>
impl<'j> Send for JailerBuilder<'j>
impl<'j> Sync for JailerBuilder<'j>
impl<'j> Unpin for JailerBuilder<'j>
impl<'j> UnwindSafe for JailerBuilder<'j>
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
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>
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>
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