pub trait Bridge {
// Required methods
fn dispatch(&mut self, input: &[u8]) -> Vec<u8> ⓘ;
fn pointer(&mut self, phase: u8, x: f32, y: f32, at_ms: f64) -> u32;
fn view(&self, key: &str) -> Vec<u8> ⓘ;
fn provide_blob(&mut self, name: &str, bytes: &[u8]) -> Vec<u8> ⓘ;
}Expand description
The surface every bridge (UniFFI, wasm-bindgen, a test harness) wraps. Bytes in, bytes out.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".