[][src]Struct container_spec::POSIXRlimitBuilder

pub struct POSIXRlimitBuilder { /* fields omitted */ }

Builder for POSIXRlimit.

Methods

impl POSIXRlimitBuilder[src]

pub fn rlimit_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

Type of the rlimit to set

pub fn hard<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self[src]

Hard is the hard limit for the specified type

pub fn soft<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self[src]

Soft is the soft limit for the specified type

pub fn build(&self) -> Result<POSIXRlimit, String>[src]

Builds a new POSIXRlimit.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for POSIXRlimitBuilder[src]

impl Default for POSIXRlimitBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.