pub struct IdleManagerOptions {
pub on_idle: Arc<Mutex<Vec<Box<dyn FnMut() + Send>>>>,
pub idle_timeout: Option<u32>,
pub capture_scroll: Option<bool>,
pub scroll_debounce: Option<u32>,
}Expand description
IdleManagerOptions is a struct that contains options for configuring an IdleManager.
Fields§
§on_idle: Arc<Mutex<Vec<Box<dyn FnMut() + Send>>>>A callback function to be executed when the system becomes idle.
idle_timeout: Option<u32>The duration of inactivity after which the system is considered idle.
capture_scroll: Option<bool>A flag indicating whether to capture scroll events.
scroll_debounce: Option<u32>A delay for debouncing scroll events.
Implementations§
Source§impl IdleManagerOptions
impl IdleManagerOptions
Sourcepub fn builder() -> IdleManagerOptionsBuilder
pub fn builder() -> IdleManagerOptionsBuilder
Returns a new IdleManagerOptionsBuilder to construct an IdleManagerOptions struct.
Trait Implementations§
Source§impl Clone for IdleManagerOptions
impl Clone for IdleManagerOptions
Source§fn clone(&self) -> IdleManagerOptions
fn clone(&self) -> IdleManagerOptions
Returns a copy 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 IdleManagerOptions
impl Debug for IdleManagerOptions
Source§impl Default for IdleManagerOptions
impl Default for IdleManagerOptions
Source§fn default() -> IdleManagerOptions
fn default() -> IdleManagerOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IdleManagerOptions
impl RefUnwindSafe for IdleManagerOptions
impl Send for IdleManagerOptions
impl Sync for IdleManagerOptions
impl Unpin for IdleManagerOptions
impl UnwindSafe for IdleManagerOptions
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