pub struct CaptureConfig {
pub webp_config: WebPConfig,
pub include_cursor: bool,
pub region: Option<CaptureRegion>,
pub use_hardware_acceleration: bool,
pub max_retries: u32,
pub retry_delay: Duration,
pub timeout: Duration,
}Expand description
Capture configuration
Fields§
§webp_config: WebPConfigWebP encoding configuration
include_cursor: boolInclude cursor in capture
region: Option<CaptureRegion>Capture region (None for full display)
use_hardware_acceleration: boolEnable hardware acceleration if available
max_retries: u32Maximum capture retries
retry_delay: DurationRetry delay
timeout: DurationCapture timeout
Trait Implementations§
Source§impl Clone for CaptureConfig
impl Clone for CaptureConfig
Source§fn clone(&self) -> CaptureConfig
fn clone(&self) -> CaptureConfig
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 CaptureConfig
impl Debug for CaptureConfig
Auto Trait Implementations§
impl Freeze for CaptureConfig
impl RefUnwindSafe for CaptureConfig
impl Send for CaptureConfig
impl Sync for CaptureConfig
impl Unpin for CaptureConfig
impl UnwindSafe for CaptureConfig
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