pub struct WaitFreezes {
pub time: i32,
pub target: Target,
pub target_offset: Rect,
pub threshold: f64,
pub method: i32,
pub rate_limit: i32,
pub timeout: i32,
}Expand description
Configuration for waiting until the screen stops changing.
Used in pre_wait_freezes, post_wait_freezes, and repeat_wait_freezes
to wait for the screen to stabilize before/after actions.
Fields§
§time: i32Duration in milliseconds the screen must remain stable. Default: 1.
target: TargetTarget area to monitor for changes.
target_offset: RectOffset applied to the target area.
threshold: f64Similarity threshold for detecting changes. Default: 0.95.
method: i32Comparison method (cv::TemplateMatchModes). Default: 5.
rate_limit: i32Minimum interval between checks in milliseconds. Default: 1000.
timeout: i32Overall timeout in milliseconds. Default: 20000.
Trait Implementations§
Source§impl Clone for WaitFreezes
impl Clone for WaitFreezes
Source§fn clone(&self) -> WaitFreezes
fn clone(&self) -> WaitFreezes
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 WaitFreezes
impl Debug for WaitFreezes
Source§impl Default for WaitFreezes
impl Default for WaitFreezes
Source§impl<'de> Deserialize<'de> for WaitFreezes
impl<'de> Deserialize<'de> for WaitFreezes
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 WaitFreezes
impl RefUnwindSafe for WaitFreezes
impl Send for WaitFreezes
impl Sync for WaitFreezes
impl Unpin for WaitFreezes
impl UnwindSafe for WaitFreezes
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