#[non_exhaustive]pub struct FailureDumpPercpuHashEntry {
pub key: Option<RenderedValue>,
pub key_hex: String,
pub per_cpu: Vec<Option<RenderedValue>>,
}Expand description
One key from a PERCPU_HASH / LRU_PERCPU_HASH map, with one
rendered value per CPU. Mirrors FailureDumpEntry for the key
side (rendered + hex) and FailureDumpPercpuEntry for the
per-CPU value vector.
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.key: Option<RenderedValue>Rendered key. None when no BTF type is available for the key.
key_hex: StringHex-encoded raw key bytes.
per_cpu: Vec<Option<RenderedValue>>One slot per CPU. None when the CPU’s per-CPU slot was
unmapped or out-of-range; Some rendered (BTF when value type
id is non-zero) or hex bytes otherwise.
Trait Implementations§
Source§impl Clone for FailureDumpPercpuHashEntry
impl Clone for FailureDumpPercpuHashEntry
Source§fn clone(&self) -> FailureDumpPercpuHashEntry
fn clone(&self) -> FailureDumpPercpuHashEntry
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 FailureDumpPercpuHashEntry
impl Debug for FailureDumpPercpuHashEntry
Source§impl Default for FailureDumpPercpuHashEntry
impl Default for FailureDumpPercpuHashEntry
Source§fn default() -> FailureDumpPercpuHashEntry
fn default() -> FailureDumpPercpuHashEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FailureDumpPercpuHashEntry
impl<'de> Deserialize<'de> for FailureDumpPercpuHashEntry
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 Display for FailureDumpPercpuHashEntry
impl Display for FailureDumpPercpuHashEntry
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Match FailureDumpEntry’s entry: key=... header so an
operator scanning the human-readable failure dump sees the
same shape regardless of whether the underlying map is a
plain HASH or a PERCPU_HASH variant. Each per-CPU slot
renders on its own indented line as cpu N: <value>.
Auto Trait Implementations§
impl Freeze for FailureDumpPercpuHashEntry
impl RefUnwindSafe for FailureDumpPercpuHashEntry
impl Send for FailureDumpPercpuHashEntry
impl Sync for FailureDumpPercpuHashEntry
impl Unpin for FailureDumpPercpuHashEntry
impl UnwindSafe for FailureDumpPercpuHashEntry
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> 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