pub struct ResourceUsageSummary {
pub peak_memory_bytes: Option<u64>,
pub average_cpu_percent: Option<f64>,
pub max_open_file_descriptors: Option<u64>,
}Expand description
Resource usage summary captured by a caller-provided runner.
Fields§
§peak_memory_bytes: Option<u64>§average_cpu_percent: Option<f64>§max_open_file_descriptors: Option<u64>Trait Implementations§
Source§impl Clone for ResourceUsageSummary
impl Clone for ResourceUsageSummary
Source§fn clone(&self) -> ResourceUsageSummary
fn clone(&self) -> ResourceUsageSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResourceUsageSummary
impl Debug for ResourceUsageSummary
Source§impl Default for ResourceUsageSummary
impl Default for ResourceUsageSummary
Source§fn default() -> ResourceUsageSummary
fn default() -> ResourceUsageSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResourceUsageSummary
impl<'de> Deserialize<'de> for ResourceUsageSummary
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
Source§impl PartialEq for ResourceUsageSummary
impl PartialEq for ResourceUsageSummary
Source§fn eq(&self, other: &ResourceUsageSummary) -> bool
fn eq(&self, other: &ResourceUsageSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResourceUsageSummary
impl Serialize for ResourceUsageSummary
impl StructuralPartialEq for ResourceUsageSummary
Auto Trait Implementations§
impl Freeze for ResourceUsageSummary
impl RefUnwindSafe for ResourceUsageSummary
impl Send for ResourceUsageSummary
impl Sync for ResourceUsageSummary
impl Unpin for ResourceUsageSummary
impl UnsafeUnpin for ResourceUsageSummary
impl UnwindSafe for ResourceUsageSummary
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