pub struct PressHoldOptions {
pub button: MouseButton,
pub poll_interval: Duration,
pub timeout: Option<Duration>,
pub min_duration: Option<Duration>,
}Expand description
Options for holding the mouse button until a condition is met.
Fields§
Mouse button to use; defaults to the left button.
poll_interval: DurationInterval between polling the condition callback.
timeout: Option<Duration>Maximum amount of time to wait; None disables the timeout.
min_duration: Option<Duration>Minimum duration to hold the button before evaluating the condition.
Trait Implementations§
Source§impl Clone for PressHoldOptions
impl Clone for PressHoldOptions
Source§fn clone(&self) -> PressHoldOptions
fn clone(&self) -> PressHoldOptions
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 PressHoldOptions
impl Debug for PressHoldOptions
Auto Trait Implementations§
impl Freeze for PressHoldOptions
impl RefUnwindSafe for PressHoldOptions
impl Send for PressHoldOptions
impl Sync for PressHoldOptions
impl Unpin for PressHoldOptions
impl UnwindSafe for PressHoldOptions
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