pub trait ScreenCaptureProxyInterface: Send + Sync {
type ConfigureResponseFut: Future<Output = Result<ScreenCaptureConfigureResult, Error>> + Send;
type GetNextFrameResponseFut: Future<Output = Result<ScreenCaptureGetNextFrameResult, Error>> + Send;
// Required methods
fn configure(
&self,
payload: ScreenCaptureConfig,
) -> Self::ConfigureResponseFut;
fn get_next_frame(&self) -> Self::GetNextFrameResponseFut;
}Required Associated Types§
type ConfigureResponseFut: Future<Output = Result<ScreenCaptureConfigureResult, Error>> + Send
type GetNextFrameResponseFut: Future<Output = Result<ScreenCaptureGetNextFrameResult, Error>> + Send
Required Methods§
fn configure(&self, payload: ScreenCaptureConfig) -> Self::ConfigureResponseFut
fn get_next_frame(&self) -> Self::GetNextFrameResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".