Struct zombienet_configuration::shared::resources::Resources
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more