pub trait ScreenshotProxyInterface: Send + Sync {
type TakeResponseFut: Future<Output = Result<ScreenshotTakeResponse, Error>> + Send;
type TakeFileResponseFut: Future<Output = Result<ScreenshotTakeFileResponse, Error>> + Send;
// Required methods
fn take(&self, payload: ScreenshotTakeRequest) -> Self::TakeResponseFut;
fn take_file(
&self,
payload: ScreenshotTakeFileRequest,
) -> Self::TakeFileResponseFut;
}Required Associated Types§
type TakeResponseFut: Future<Output = Result<ScreenshotTakeResponse, Error>> + Send
type TakeFileResponseFut: Future<Output = Result<ScreenshotTakeFileResponse, Error>> + Send
Required Methods§
fn take(&self, payload: ScreenshotTakeRequest) -> Self::TakeResponseFut
fn take_file( &self, payload: ScreenshotTakeFileRequest, ) -> Self::TakeFileResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".