Skip to main content

ScreenCaptureProvider

Trait ScreenCaptureProvider 

Source
pub trait ScreenCaptureProvider: Send + Sync {
    // Required method
    fn request(&self, request: ScreenCaptureRequest) -> ScreenCaptureChannel;
}
Expand description

Process-provided screen capture.

Required Methods§

Source

fn request(&self, request: ScreenCaptureRequest) -> ScreenCaptureChannel

Ask the user for a screen or window to capture. Answers over the channel, never blocking the caller while the process shows its picker.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§