pub struct PropertiesBuilder { /* private fields */ }Implementations§
Source§impl PropertiesBuilder
impl PropertiesBuilder
pub fn default_cgroup(slice: &str, unit: &str) -> Self
pub fn cpu_accounting(self, enabled: bool) -> Self
pub fn memory_accounting(self, enabled: bool) -> Self
pub fn task_accounting(self, enabled: bool) -> Self
pub fn io_accounting(self, enabled: bool) -> Self
pub fn default_dependencies(self, enabled: bool) -> Self
pub fn description(self, desc: String) -> Self
pub fn wants(self, wants: String) -> Self
pub fn slice(self, slice: String) -> Self
pub fn delegate(self, enabled: bool) -> Self
pub fn pids(self, pids: Vec<u32>) -> Self
pub fn timeout_stop_usec(self, timeout: u64) -> Self
pub fn build(self) -> Vec<Property<'static>> ⓘ
Trait Implementations§
Source§impl Clone for PropertiesBuilder
impl Clone for PropertiesBuilder
Source§fn clone(&self) -> PropertiesBuilder
fn clone(&self) -> PropertiesBuilder
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 PropertiesBuilder
impl Debug for PropertiesBuilder
Source§impl Default for PropertiesBuilder
impl Default for PropertiesBuilder
Source§fn default() -> PropertiesBuilder
fn default() -> PropertiesBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PropertiesBuilder
impl RefUnwindSafe for PropertiesBuilder
impl Send for PropertiesBuilder
impl Sync for PropertiesBuilder
impl Unpin for PropertiesBuilder
impl UnwindSafe for PropertiesBuilder
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