pub struct ClusterPolicy {
pub enabled: bool,
pub distance_px: f32,
pub dwell_ms: u64,
pub min_members: usize,
pub include_anchored: bool,
pub include_active: bool,
}Expand description
Configuration for auto cluster formation.
Default idea:
- Nodes that remain within
distance_pxof each other fordwell_mscan be clustered (as a connected component). - Can be disabled (
enabled = false) or tuned.
Fields§
§enabled: bool§distance_px: f32Max distance between nodes to be considered “near”.
dwell_ms: u64How long nodes must remain near to qualify (ms).
min_members: usizeMinimum component size to form a cluster.
include_anchored: boolInclude anchored nodes in auto-clustering.
include_active: boolInclude currently Active windows in auto-clustering. Keeping this false avoids grouping freshly opened app windows.
Trait Implementations§
Source§impl Clone for ClusterPolicy
impl Clone for ClusterPolicy
Source§fn clone(&self) -> ClusterPolicy
fn clone(&self) -> ClusterPolicy
Returns a duplicate of the value. Read more
1.0.0 · 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 ClusterPolicy
impl Debug for ClusterPolicy
Source§impl Default for ClusterPolicy
impl Default for ClusterPolicy
impl Copy for ClusterPolicy
Auto Trait Implementations§
impl Freeze for ClusterPolicy
impl RefUnwindSafe for ClusterPolicy
impl Send for ClusterPolicy
impl Sync for ClusterPolicy
impl Unpin for ClusterPolicy
impl UnsafeUnpin for ClusterPolicy
impl UnwindSafe for ClusterPolicy
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