pub struct Generator {
pub config: Option<Spec>,
pub host_specific: bool,
pub env_map: HashMap<String, usize>,
}Fields§
§config: Option<Spec>§host_specific: bool§env_map: HashMap<String, usize>Implementations§
Source§impl Generator
impl Generator
pub fn spec_gen(spec: Option<Spec>) -> Self
pub fn init_config(&mut self)
pub fn init_config_process(&mut self)
pub fn init_config_linux(&mut self)
pub fn init_config_linux_resources(&mut self)
pub fn init_config_linux_resources_devices(&mut self)
pub fn init_config_hooks(&mut self)
pub fn init_config_mounts(&mut self)
pub fn init_config_linux_intel_rdt(&mut self)
Source§impl Generator
impl Generator
pub fn remove_device(&mut self, path: &str)
pub fn add_device(&mut self, device: LinuxDevice)
pub fn add_linux_resources_device( &mut self, allow: bool, dev_type: LinuxDeviceType, major: Option<i64>, minor: Option<i64>, access: Option<String>, )
Sourcepub fn set_linux_intel_rdt_clos_id(&mut self, clos_id: String)
pub fn set_linux_intel_rdt_clos_id(&mut self, clos_id: String)
set Linux Intel RDT ClosID
pub fn add_process_additional_gid(&mut self, gid: u32)
pub fn add_multiple_process_env(&mut self, envs: &[String])
pub fn add_prestart_hook(&mut self, hook: Hook)
pub fn add_poststop_hook(&mut self, hook: Hook)
pub fn add_poststart_hook(&mut self, hook: Hook)
pub fn add_createruntime_hook(&mut self, hook: Hook)
pub fn add_createcontainer_hook(&mut self, hook: Hook)
pub fn add_startcontainer_hook(&mut self, hook: Hook)
pub fn remove_mount(&mut self, dest: &str)
pub fn add_mount(&mut self, mount: Mount)
pub fn sort_mounts(&mut self)
pub fn list_mounts(&self) -> Option<&Vec<Mount>>
pub fn clear_mounts(&mut self)
Auto Trait Implementations§
impl Freeze for Generator
impl RefUnwindSafe for Generator
impl Send for Generator
impl Sync for Generator
impl Unpin for Generator
impl UnwindSafe for Generator
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