pub struct FirecrackerOption { /* private fields */ }
Implementationsยง
Sourceยงimpl FirecrackerOption
impl FirecrackerOption
pub fn new<P: AsRef<Path>>(firecracker_bin: P) -> Self
pub fn build(&mut self) -> Result<Instance>
pub fn api_sock<P: AsRef<Path>>(&mut self, api_sock: P) -> &mut Self
pub fn boot_timer(&mut self) -> &mut Self
pub fn config_file<P: AsRef<Path>>( &mut self, config_file: Option<P>, ) -> &mut Self
pub fn http_api_max_payload_size( &mut self, http_api_max_payload_size: usize, ) -> &mut Self
pub fn id<S: AsRef<str>>(&mut self, id: S) -> &mut Self
pub fn level<S: AsRef<str>>(&mut self, level: S) -> &mut Self
pub fn log_path<P: AsRef<Path>>(&mut self, log_path: Option<P>) -> &mut Self
pub fn metadata<P: AsRef<Path>>(&mut self, metadata: Option<P>) -> &mut Self
pub fn metrics_path<P: AsRef<Path>>( &mut self, metrics_path: Option<P>, ) -> &mut Self
pub fn mmds_size_limit<P: AsRef<Path>>( &mut self, mmds_size_limit: Option<P>, ) -> &mut Self
pub fn module<S: AsRef<str>>(&mut self, module: S) -> &mut Self
pub fn no_api(&mut self) -> &mut Self
pub fn no_seccomp(&mut self) -> &mut Self
pub fn parent_cpu_time_us(&mut self, parent_cpu_time_us: usize) -> &mut Self
pub fn seccomp_filter<S: AsRef<str>>(&mut self, seccomp_filter: S) -> &mut Self
pub fn show_level(&mut self) -> &mut Self
pub fn show_log_origin(&mut self) -> &mut Self
pub fn start_time_cpu_us(&mut self, start_time_cpu_us: usize) -> &mut Self
pub fn start_time_us(&mut self, start_time_us: usize) -> &mut Self
pub fn stdin<P: AsRef<Path>>(&mut self, stdin: P) -> &mut Self
pub fn stdout<P: AsRef<Path>>(&mut self, stdout: P) -> &mut Self
pub fn stderr<P: AsRef<Path>>(&mut self, stderr: P) -> &mut Self
Trait Implementationsยง
Sourceยงimpl Clone for FirecrackerOption
impl Clone for FirecrackerOption
Sourceยงfn clone(&self) -> FirecrackerOption
fn clone(&self) -> FirecrackerOption
Returns a duplicate of the value. Read more
1.0.0 ยท 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 FirecrackerOption
impl Debug for FirecrackerOption
Sourceยงimpl Default for FirecrackerOption
impl Default for FirecrackerOption
Sourceยงfn default() -> FirecrackerOption
fn default() -> FirecrackerOption
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl<'de> Deserialize<'de> for FirecrackerOption
impl<'de> Deserialize<'de> for FirecrackerOption
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 FirecrackerOption
impl RefUnwindSafe for FirecrackerOption
impl Send for FirecrackerOption
impl Sync for FirecrackerOption
impl Unpin for FirecrackerOption
impl UnwindSafe for FirecrackerOption
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