pub struct ControlSnapshot {
pub shutdown: bool,
pub done_count: u32,
pub epoch: u32,
pub metrics: Vec<(u32, u32)>,
pub tenant_fairness: Vec<u32>,
pub priority_fairness: Vec<u32>,
}Expand description
Structured view of the control buffer.
Fields§
§shutdown: boolShutdown flag.
done_count: u32Total drained slots.
epoch: u32Epoch value (batch fences).
metrics: Vec<(u32, u32)>Non-zero opcode metrics.
tenant_fairness: Vec<u32>Per-tenant fairness counters (cumulative).
priority_fairness: Vec<u32>Per-priority fairness counters (cumulative).
Implementations§
Source§impl ControlSnapshot
impl ControlSnapshot
Sourcepub fn decode_into(control_bytes: &[u8], out: &mut Self)
pub fn decode_into(control_bytes: &[u8], out: &mut Self)
Decode a structured control-buffer view into caller-owned storage.
Sourcepub fn try_decode_into(
control_bytes: &[u8],
out: &mut Self,
) -> Result<(), PipelineError>
pub fn try_decode_into( control_bytes: &[u8], out: &mut Self, ) -> Result<(), PipelineError>
Strictly decode a structured control-buffer view.
§Errors
Returns PipelineError when any fixed control word is missing from
the control snapshot.
Trait Implementations§
Source§impl Clone for ControlSnapshot
impl Clone for ControlSnapshot
Source§fn clone(&self) -> ControlSnapshot
fn clone(&self) -> ControlSnapshot
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 ControlSnapshot
impl Debug for ControlSnapshot
Source§impl Default for ControlSnapshot
impl Default for ControlSnapshot
Source§fn default() -> ControlSnapshot
fn default() -> ControlSnapshot
Returns the “default value” for a type. Read more
Source§impl PartialEq for ControlSnapshot
impl PartialEq for ControlSnapshot
Source§fn eq(&self, other: &ControlSnapshot) -> bool
fn eq(&self, other: &ControlSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ControlSnapshot
impl StructuralPartialEq for ControlSnapshot
Auto Trait Implementations§
impl Freeze for ControlSnapshot
impl RefUnwindSafe for ControlSnapshot
impl Send for ControlSnapshot
impl Sync for ControlSnapshot
impl Unpin for ControlSnapshot
impl UnsafeUnpin for ControlSnapshot
impl UnwindSafe for ControlSnapshot
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.