pub struct PolicyObservation {
pub active_producers: usize,
pub active_consumers: usize,
pub current_shape: RingShape,
pub since_last_morph: Duration,
pub stamped: bool,
}Expand description
A snapshot of the ring’s observable state passed to a policy on every sidecar scan.
Fields§
§active_producers: usize§active_consumers: usize§current_shape: RingShape§since_last_morph: Duration§stamped: boolWhether the ring carries ordering stamps. Shape policies consult this because the GlobalFifo declaration routes differently: unstamped rings morph to Vyukov, stamped rings flip the merge flag (the ordering policy’s job) and must stay on the composed shapes.
Trait Implementations§
Source§impl Clone for PolicyObservation
impl Clone for PolicyObservation
Source§fn clone(&self) -> PolicyObservation
fn clone(&self) -> PolicyObservation
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 moreimpl Copy for PolicyObservation
Auto Trait Implementations§
impl Freeze for PolicyObservation
impl RefUnwindSafe for PolicyObservation
impl Send for PolicyObservation
impl Sync for PolicyObservation
impl Unpin for PolicyObservation
impl UnsafeUnpin for PolicyObservation
impl UnwindSafe for PolicyObservation
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