pub struct PaneWorkloadProfile {
pub operation_count: usize,
pub local_operation_count: usize,
pub peak_ops_per_sec: u32,
pub history_required: bool,
}Expand description
Observed shape of a pane-interaction workload window — the deterministic input to strategy selection.
Fields§
§operation_count: usizeOperations observed in the window.
local_operation_count: usizeOf those, how many are Local (resize / SetSplitRatio) — the hot path
where the persistent store’s structural sharing and O(1) navigation win.
peak_ops_per_sec: u32Peak operations-per-second observed (burstiness, e.g. a live drag-resize).
history_required: boolWhether undo/redo history is required at all. If not, no history substrate is needed and the baseline path is selected.
Implementations§
Source§impl PaneWorkloadProfile
impl PaneWorkloadProfile
Sourcepub const fn new(
operation_count: usize,
local_operation_count: usize,
peak_ops_per_sec: u32,
history_required: bool,
) -> Self
pub const fn new( operation_count: usize, local_operation_count: usize, peak_ops_per_sec: u32, history_required: bool, ) -> Self
Construct a profile from explicit counts.
Sourcepub fn observe(
ops: &[PaneOperation],
peak_ops_per_sec: u32,
history_required: bool,
) -> Self
pub fn observe( ops: &[PaneOperation], peak_ops_per_sec: u32, history_required: bool, ) -> Self
Derive a profile from an observed operation window. Local operations are
classified by PaneOperation::family (Local = SetSplitRatio).
Sourcepub const fn local_fraction_pct(self) -> u32
pub const fn local_fraction_pct(self) -> u32
Local-operation fraction as an integer percentage in [0, 100].
Trait Implementations§
Source§impl Clone for PaneWorkloadProfile
impl Clone for PaneWorkloadProfile
Source§fn clone(&self) -> PaneWorkloadProfile
fn clone(&self) -> PaneWorkloadProfile
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 PaneWorkloadProfile
Source§impl Debug for PaneWorkloadProfile
impl Debug for PaneWorkloadProfile
impl Eq for PaneWorkloadProfile
Source§impl PartialEq for PaneWorkloadProfile
impl PartialEq for PaneWorkloadProfile
Source§fn eq(&self, other: &PaneWorkloadProfile) -> bool
fn eq(&self, other: &PaneWorkloadProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PaneWorkloadProfile
impl Serialize for PaneWorkloadProfile
impl StructuralPartialEq for PaneWorkloadProfile
Auto Trait Implementations§
impl Freeze for PaneWorkloadProfile
impl RefUnwindSafe for PaneWorkloadProfile
impl Send for PaneWorkloadProfile
impl Sync for PaneWorkloadProfile
impl Unpin for PaneWorkloadProfile
impl UnsafeUnpin for PaneWorkloadProfile
impl UnwindSafe for PaneWorkloadProfile
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