Skip to main content

SharedHooks

Type Alias SharedHooks 

Source
pub type SharedHooks = Arc<Mutex<dyn DecoderHooks>>;
Expand description

Shared, lockable hook handle. Used so that Source::take_reader_hooks can hand off Clone-able ownership and the hook implementation can hold &mut self state behind a single lock.

Aliased Typeยง

pub struct SharedHooks { /* private fields */ }