Skip to main content

LiveSurface

Trait LiveSurface 

Source
pub trait LiveSurface {
    // Required methods
    fn open(&mut self, resource: &str, pane: &str) -> SimResult<Expr>;
    fn submit(
        &mut self,
        pane: &str,
        intent: &Expr,
    ) -> SimResult<Vec<SceneUpdate>>;
}
Expand description

One browser-owned reversible surface.

The shell owns lifecycle and opaque browser ids; a product supplies one of these objects per browser when it needs a non-fixture transport or codec.

Required Methods§

Source

fn open(&mut self, resource: &str, pane: &str) -> SimResult<Expr>

Open resource in pane and return its initial Scene.

Source

fn submit(&mut self, pane: &str, intent: &Expr) -> SimResult<Vec<SceneUpdate>>

Submit one Intent and return the resulting Scene updates.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§