[−][src]Struct container_spec::LinuxResourcesBuilder
Builder for LinuxResources
.
Methods
impl LinuxResourcesBuilder
[src]
pub fn devices<VALUE: Into<Vec<LinuxDeviceCgroup>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
Devices configures the device whitelist.
pub fn memory<VALUE: Into<Option<LinuxMemory>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
Memory restriction configuration
pub fn cpu<VALUE: Into<Option<LinuxCPU>>>(&mut self, value: VALUE) -> &mut Self
[src]
CPU resource restriction configuration
pub fn pids<VALUE: Into<Option<LinuxPids>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
Task resource restriction configuration.
pub fn block_io<VALUE: Into<Option<LinuxBlockIO>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
BlockIO restriction configuration
pub fn hugepage_limits<VALUE: Into<Vec<LinuxHugepageLimit>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
Hugetlb limit (in bytes)
pub fn network<VALUE: Into<Option<LinuxNetwork>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
Network restriction configuration
pub fn rdma<VALUE: Into<HashMap<String, LinuxRdma>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
Rdma resource restriction configuration. Limits are a set of key value pairs that define RDMA resource limits, where the key is device name and value is resource limits.
pub fn build(&self) -> Result<LinuxResources, String>
[src]
Trait Implementations
impl Clone for LinuxResourcesBuilder
[src]
fn clone(&self) -> LinuxResourcesBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for LinuxResourcesBuilder
[src]
fn default() -> LinuxResourcesBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for LinuxResourcesBuilder
impl Send for LinuxResourcesBuilder
impl Sync for LinuxResourcesBuilder
impl Unpin for LinuxResourcesBuilder
impl UnwindSafe for LinuxResourcesBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,