Skip to main content

LiveSurfaceFactory

Trait LiveSurfaceFactory 

Source
pub trait LiveSurfaceFactory {
    // Required method
    fn create(&self) -> SimResult<Box<dyn LiveSurface>>;
}
Expand description

Object-safe factory for isolated browser-owned live surfaces.

Required Methods§

Source

fn create(&self) -> SimResult<Box<dyn LiveSurface>>

Construct one fresh surface, including its transport, authority, and session-local presentation state.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§