pub enum ChargeOutcome {
Charged,
Unattributed,
Deferred,
}Expand description
Result of charging an allocation to the current task.
Three states that used to be one boolean: an allocation can be charged, belong to no task at all, or be deferred because the registry lock was busy. A report must be able to tell them apart (plan A08).
Variants§
Charged
The task was charged, memory_usage includes this block.
Unattributed
No task context was installed; the block belongs to no task.
Deferred
The registry lock was busy, so the charge was skipped and counted. The affected task’s metrics are a lower bound for this capture window.
Trait Implementations§
Source§impl Clone for ChargeOutcome
impl Clone for ChargeOutcome
impl Copy for ChargeOutcome
Source§impl Debug for ChargeOutcome
impl Debug for ChargeOutcome
Source§impl<'de> Deserialize<'de> for ChargeOutcome
impl<'de> Deserialize<'de> for ChargeOutcome
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 Eq for ChargeOutcome
Source§impl PartialEq for ChargeOutcome
impl PartialEq for ChargeOutcome
Source§impl Serialize for ChargeOutcome
impl Serialize for ChargeOutcome
impl StructuralPartialEq for ChargeOutcome
Auto Trait Implementations§
impl Forget for ChargeOutcome
impl Freeze for ChargeOutcome
impl RefUnwindSafe for ChargeOutcome
impl Send for ChargeOutcome
impl Sync for ChargeOutcome
impl Unpin for ChargeOutcome
impl UnsafeUnpin for ChargeOutcome
impl UnwindSafe for ChargeOutcome
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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