pub struct Resources { /* private fields */ }
Expand description
Resources limits used in the context of podman/k8s.
Implementations§
Source§impl Resources
impl Resources
Sourcepub fn request_memory(&self) -> Option<&ResourceQuantity>
pub fn request_memory(&self) -> Option<&ResourceQuantity>
Memory limit applied to requests.
Sourcepub fn request_cpu(&self) -> Option<&ResourceQuantity>
pub fn request_cpu(&self) -> Option<&ResourceQuantity>
CPU limit applied to requests.
Sourcepub fn limit_memory(&self) -> Option<&ResourceQuantity>
pub fn limit_memory(&self) -> Option<&ResourceQuantity>
Overall memory limit applied.
Sourcepub fn limit_cpu(&self) -> Option<&ResourceQuantity>
pub fn limit_cpu(&self) -> Option<&ResourceQuantity>
Overall CPU limit applied.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Resources
impl<'de> Deserialize<'de> for Resources
Source§fn 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 Resources
Auto Trait Implementations§
impl Freeze for Resources
impl RefUnwindSafe for Resources
impl Send for Resources
impl Sync for Resources
impl Unpin for Resources
impl UnwindSafe for Resources
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