pub struct PartitionCollisionsReport {
pub partitions: u16,
pub total_lanes: usize,
pub colliding_lanes: usize,
pub severity: CollisionSeverity,
pub entries: Vec<LanePartition>,
}Expand description
Aggregated output of the partition-collisions probe.
Fields§
§partitions: u16§total_lanes: usize§colliding_lanes: usize§severity: CollisionSeverity§entries: Vec<LanePartition>Per-lane results, sorted by partition index (then by lane name within a partition) for deterministic output.
Implementations§
Source§impl PartitionCollisionsReport
impl PartitionCollisionsReport
Sourcepub fn compute(lanes: &[LaneId], config: &PartitionConfig) -> Self
pub fn compute(lanes: &[LaneId], config: &PartitionConfig) -> Self
Compute the report for a set of configured lanes under the given partition config.
Pure function — no Valkey connection, no IO. Uses
ff_core::partition::solo_partition (and therefore
ff_core::partition::Crc16SoloPartitioner). Deployments that have
installed a custom ff_core::partition::SoloPartitioner at boot
time need to feed the alternate partitioner in explicitly — not
yet wired through this subcommand; the current probe assumes the
default.
Sourcepub fn format_plain(&self) -> String
pub fn format_plain(&self) -> String
Render the report as a plain-text table, deterministic and
operator-friendly. Emits to stdout in the CLI; returned as a
String for unit testing.
Trait Implementations§
Source§impl Clone for PartitionCollisionsReport
impl Clone for PartitionCollisionsReport
Source§fn clone(&self) -> PartitionCollisionsReport
fn clone(&self) -> PartitionCollisionsReport
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for PartitionCollisionsReport
impl RefUnwindSafe for PartitionCollisionsReport
impl Send for PartitionCollisionsReport
impl Sync for PartitionCollisionsReport
impl Unpin for PartitionCollisionsReport
impl UnsafeUnpin for PartitionCollisionsReport
impl UnwindSafe for PartitionCollisionsReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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