Skip to main content

NativePresenter

Trait NativePresenter 

Source
pub trait NativePresenter: Send + Sync {
    // Required method
    fn prepare(
        &self,
        source: NativeSource<'_>,
    ) -> Result<Option<Arc<dyn NativeFrame>>, String>;
}

Required Methods§

Source

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".

Implementors§