pub struct IdleManagerOptionsBuilder { /* private fields */ }Expand description
Builder for the IdleManagerOptions.
Implementations§
source§impl IdleManagerOptionsBuilder
impl IdleManagerOptionsBuilder
sourcepub fn on_idle(&mut self, on_idle: fn()) -> &mut Self
pub fn on_idle(&mut self, on_idle: fn()) -> &mut Self
A callback function to be executed when the system becomes idle.
sourcepub fn idle_timeout(&mut self, idle_timeout: u32) -> &mut Self
pub fn idle_timeout(&mut self, idle_timeout: u32) -> &mut Self
The duration of inactivity after which the system is considered idle.
sourcepub fn capture_scroll(&mut self, capture_scroll: bool) -> &mut Self
pub fn capture_scroll(&mut self, capture_scroll: bool) -> &mut Self
A flag indicating whether to capture scroll events.
sourcepub fn scroll_debounce(&mut self, scroll_debounce: u32) -> &mut Self
pub fn scroll_debounce(&mut self, scroll_debounce: u32) -> &mut Self
A delay for debouncing scroll events.
sourcepub fn build(&mut self) -> IdleManagerOptions
pub fn build(&mut self) -> IdleManagerOptions
Builds the IdleManagerOptions struct.
Trait Implementations§
source§impl Default for IdleManagerOptionsBuilder
impl Default for IdleManagerOptionsBuilder
source§fn default() -> IdleManagerOptionsBuilder
fn default() -> IdleManagerOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IdleManagerOptionsBuilder
impl !RefUnwindSafe for IdleManagerOptionsBuilder
impl !Send for IdleManagerOptionsBuilder
impl !Sync for IdleManagerOptionsBuilder
impl Unpin for IdleManagerOptionsBuilder
impl !UnwindSafe for IdleManagerOptionsBuilder
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