#[non_exhaustive]pub struct ResourcesConsumed {
pub replica_hours: f64,
/* private fields */
}Available on crate feature
job-service only.Expand description
Statistics information about resource consumption.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.replica_hours: f64Output only. The number of replica hours used. Note that many replicas may run in parallel, and additionally any given work may be queued for some time. Therefore this value is not strictly related to wall time.
Implementations§
Source§impl ResourcesConsumed
impl ResourcesConsumed
pub fn new() -> Self
Sourcepub fn set_replica_hours<T: Into<f64>>(self, v: T) -> Self
pub fn set_replica_hours<T: Into<f64>>(self, v: T) -> Self
Sets the value of replica_hours.
§Example
ⓘ
let x = ResourcesConsumed::new().set_replica_hours(42.0);Trait Implementations§
Source§impl Clone for ResourcesConsumed
impl Clone for ResourcesConsumed
Source§fn clone(&self) -> ResourcesConsumed
fn clone(&self) -> ResourcesConsumed
Returns a duplicate of the value. Read more
1.0.0 · 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 ResourcesConsumed
impl Debug for ResourcesConsumed
Source§impl Default for ResourcesConsumed
impl Default for ResourcesConsumed
Source§fn default() -> ResourcesConsumed
fn default() -> ResourcesConsumed
Returns the “default value” for a type. Read more
Source§impl Message for ResourcesConsumed
impl Message for ResourcesConsumed
Source§impl PartialEq for ResourcesConsumed
impl PartialEq for ResourcesConsumed
impl StructuralPartialEq for ResourcesConsumed
Auto Trait Implementations§
impl Freeze for ResourcesConsumed
impl RefUnwindSafe for ResourcesConsumed
impl Send for ResourcesConsumed
impl Sync for ResourcesConsumed
impl Unpin for ResourcesConsumed
impl UnwindSafe for ResourcesConsumed
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