Skip to main content

SharedBlock

Type Alias SharedBlock 

Source
pub type SharedBlock = Arc<Mutex<GroupCompressBlock>>;
Expand description

A shared, mutable reference to a decoded block.

Arc<Mutex<..>> rather than Rc<RefCell<..>> so the cache and the store are Send + Sync-compatible — the pyo3 layer can hold the store in a regular #[pyclass] without resorting to unsendable.

Aliased Type§

pub struct SharedBlock { /* private fields */ }