pub trait NativePresenter: Send + Sync {
// Required method
fn prepare(
&self,
source: NativeSource<'_>,
) -> Result<Option<Arc<dyn NativeFrame>>, String>;
}Required Methods§
Sourcefn prepare(
&self,
source: NativeSource<'_>,
) -> Result<Option<Arc<dyn NativeFrame>>, String>
fn prepare( &self, source: NativeSource<'_>, ) -> Result<Option<Arc<dyn NativeFrame>>, String>
None means unsupported; the bounded asynchronous readback is the fallback.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".