Struct docker_api_stubs::models::Limit
source · [−]pub struct Limit {
pub memory_bytes: Option<i64>,
pub nano_cp_us: Option<i64>,
pub pids: Option<i64>,
}
Expand description
An object describing a limit on resources which can be requested by a task.
Fields
memory_bytes: Option<i64>
nano_cp_us: Option<i64>
pids: Option<i64>
Limits the maximum number of PIDs in the container. Set 0
for unlimited.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Limit
impl<'de> Deserialize<'de> for Limit
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Limit
Auto Trait Implementations
impl RefUnwindSafe for Limit
impl Send for Limit
impl Sync for Limit
impl Unpin for Limit
impl UnwindSafe for Limit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more