Skip to main content

SharedBackend

Type Alias SharedBackend 

Source
pub type SharedBackend = Arc<dyn Backend>;
Expand description

Reference-counted pointer to a heap-allocated backend.

On native targets (without unsync) we require Send + Sync via Arc. On wasm32 or with the unsync feature, Rc is used instead — the runtime is single-threaded so Send bounds are unnecessary.

Aliased Type§

pub struct SharedBackend { /* private fields */ }