pub struct BpfMapCpuProjector<'a> { /* private fields */ }Expand description
Single-CPU view of a per-CPU BPF map, returned by
BpfMapProjector::cpu. Its field_* read the chosen CPU’s slot
of the map’s per-CPU value — the per-CPU SELECT counterpart to the
cross-CPU BpfMapProjector::field_cpu_sum_u64 reductions.
On a non-per-CPU map the CPU narrow is a no-op (see
BpfMapProjector::cpu), so field_* read the plain value.
Implementations§
Source§impl<'a> BpfMapCpuProjector<'a>
impl<'a> BpfMapCpuProjector<'a>
Sourcepub fn field_u64(&self, field: &str) -> SeriesField<u64>
pub fn field_u64(&self, field: &str) -> SeriesField<u64>
Project this CPU’s slot of a named struct field as u64.
Sourcepub fn field_i64(&self, field: &str) -> SeriesField<i64>
pub fn field_i64(&self, field: &str) -> SeriesField<i64>
Project this CPU’s slot of a named struct field as i64.
Sourcepub fn field_f64(&self, field: &str) -> SeriesField<f64>
pub fn field_f64(&self, field: &str) -> SeriesField<f64>
Project this CPU’s slot of a named struct field as f64.
Auto Trait Implementations§
impl<'a> Freeze for BpfMapCpuProjector<'a>
impl<'a> RefUnwindSafe for BpfMapCpuProjector<'a>
impl<'a> Send for BpfMapCpuProjector<'a>
impl<'a> Sync for BpfMapCpuProjector<'a>
impl<'a> Unpin for BpfMapCpuProjector<'a>
impl<'a> UnwindSafe for BpfMapCpuProjector<'a>
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
§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