Skip to main content

Backend

Trait Backend 

Source
pub trait Backend {
    // Required methods
    fn supported(&self) -> bool;
    fn create(
        &self,
        node: u32,
        sink: Sink,
        window: &mut Window,
        cx: &mut App,
    ) -> Option<Box<dyn Frame>>;
}

Required Methods§

Source

fn supported(&self) -> bool

Cheap: asked by skFeatures.iframe on every read.

Source

fn create( &self, node: u32, sink: Sink, window: &mut Window, cx: &mut App, ) -> Option<Box<dyn Frame>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§