pub struct FocusConfig {
pub max_active_foci: usize,
pub switch_threshold: f32,
pub max_history_foci: usize,
pub auto_suspend_after: usize,
}Expand description
聚焦点配置
Fields§
§max_active_foci: usize最大活跃聚焦点数量
switch_threshold: f32聚焦点切换阈值(相关性低于此值时考虑新聚焦点)
max_history_foci: usize历史聚焦点保留数量
auto_suspend_after: usize自动完成阈值(连续 N 条消息未提及则标记为 Suspended)
Trait Implementations§
Source§impl Clone for FocusConfig
impl Clone for FocusConfig
Source§fn clone(&self) -> FocusConfig
fn clone(&self) -> FocusConfig
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 FocusConfig
impl Debug for FocusConfig
Source§impl Default for FocusConfig
impl Default for FocusConfig
Source§impl<'de> Deserialize<'de> for FocusConfig
impl<'de> Deserialize<'de> for FocusConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FocusConfig
impl RefUnwindSafe for FocusConfig
impl Send for FocusConfig
impl Sync for FocusConfig
impl Unpin for FocusConfig
impl UnsafeUnpin for FocusConfig
impl UnwindSafe for FocusConfig
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