pub struct LinuxResourcesBuilder { /* private fields */ }
Expand description
Builder for LinuxResources
.
Implementations§
Source§impl LinuxResourcesBuilder
impl LinuxResourcesBuilder
Sourcepub fn devices<VALUE: Into<Vec<LinuxDeviceCgroup>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn devices<VALUE: Into<Vec<LinuxDeviceCgroup>>>( &mut self, value: VALUE, ) -> &mut Self
Devices configures the device whitelist.
Sourcepub fn memory<VALUE: Into<Option<LinuxMemory>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn memory<VALUE: Into<Option<LinuxMemory>>>( &mut self, value: VALUE, ) -> &mut Self
Memory restriction configuration
Sourcepub fn cpu<VALUE: Into<Option<LinuxCPU>>>(&mut self, value: VALUE) -> &mut Self
pub fn cpu<VALUE: Into<Option<LinuxCPU>>>(&mut self, value: VALUE) -> &mut Self
CPU resource restriction configuration
Sourcepub fn pids<VALUE: Into<Option<LinuxPids>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn pids<VALUE: Into<Option<LinuxPids>>>( &mut self, value: VALUE, ) -> &mut Self
Task resource restriction configuration.
Sourcepub fn block_io<VALUE: Into<Option<LinuxBlockIO>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn block_io<VALUE: Into<Option<LinuxBlockIO>>>( &mut self, value: VALUE, ) -> &mut Self
BlockIO restriction configuration
Sourcepub fn hugepage_limits<VALUE: Into<Vec<LinuxHugepageLimit>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn hugepage_limits<VALUE: Into<Vec<LinuxHugepageLimit>>>( &mut self, value: VALUE, ) -> &mut Self
Hugetlb limit (in bytes)
Sourcepub fn network<VALUE: Into<Option<LinuxNetwork>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn network<VALUE: Into<Option<LinuxNetwork>>>( &mut self, value: VALUE, ) -> &mut Self
Network restriction configuration
Trait Implementations§
Source§impl Clone for LinuxResourcesBuilder
impl Clone for LinuxResourcesBuilder
Source§fn clone(&self) -> LinuxResourcesBuilder
fn clone(&self) -> LinuxResourcesBuilder
Returns a copy 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 Default for LinuxResourcesBuilder
impl Default for LinuxResourcesBuilder
Source§fn default() -> LinuxResourcesBuilder
fn default() -> LinuxResourcesBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LinuxResourcesBuilder
impl RefUnwindSafe for LinuxResourcesBuilder
impl Send for LinuxResourcesBuilder
impl Sync for LinuxResourcesBuilder
impl Unpin for LinuxResourcesBuilder
impl UnwindSafe for LinuxResourcesBuilder
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