pub struct RunAccounting { /* private fields */ }Expand description
Run-level resource accounting.
Implementations§
Source§impl RunAccounting
impl RunAccounting
Sourcepub const fn new(
requests: ResourceAccounting,
response_body_bytes: ResourceAccounting,
request_body_bytes: ResourceAccounting,
wall_time_ms: ResourceAccounting,
) -> RunAccounting
pub const fn new( requests: ResourceAccounting, response_body_bytes: ResourceAccounting, request_body_bytes: ResourceAccounting, wall_time_ms: ResourceAccounting, ) -> RunAccounting
Creates accounting for all required resource dimensions.
Sourcepub const fn unmetered() -> RunAccounting
pub const fn unmetered() -> RunAccounting
Returns fully explicit unmetered accounting.
Sourcepub const fn requests(&self) -> &ResourceAccounting
pub const fn requests(&self) -> &ResourceAccounting
Returns request accounting.
Sourcepub const fn response_body_bytes(&self) -> &ResourceAccounting
pub const fn response_body_bytes(&self) -> &ResourceAccounting
Returns response-body accounting.
Sourcepub const fn request_body_bytes(&self) -> &ResourceAccounting
pub const fn request_body_bytes(&self) -> &ResourceAccounting
Returns request-body accounting.
Sourcepub const fn wall_time_ms(&self) -> &ResourceAccounting
pub const fn wall_time_ms(&self) -> &ResourceAccounting
Returns wall-time accounting.
Trait Implementations§
Source§impl Clone for RunAccounting
impl Clone for RunAccounting
Source§fn clone(&self) -> RunAccounting
fn clone(&self) -> RunAccounting
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 RunAccounting
impl Debug for RunAccounting
Source§impl<'de> Deserialize<'de> for RunAccounting
impl<'de> Deserialize<'de> for RunAccounting
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RunAccounting, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RunAccounting, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RunAccounting
Source§impl PartialEq for RunAccounting
impl PartialEq for RunAccounting
Source§impl Serialize for RunAccounting
impl Serialize for RunAccounting
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RunAccounting
Auto Trait Implementations§
impl Freeze for RunAccounting
impl RefUnwindSafe for RunAccounting
impl Send for RunAccounting
impl Sync for RunAccounting
impl Unpin for RunAccounting
impl UnsafeUnpin for RunAccounting
impl UnwindSafe for RunAccounting
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more