pub trait MetadataHandler {
// Required method
fn callbacks_of_interest(&self) -> Vec<MetadataHandlers>;
// Provided methods
fn sample_rate_changed(&mut self, srate: NumFrames) -> i32 { ... }
fn on_port_connect(
&mut self,
a: PortId,
b: PortId,
status: PortConnectStatus,
) { ... }
}Expand description
This trait defines the callbacks which may be delivered to the metadata thread
Required Methods§
Sourcefn callbacks_of_interest(&self) -> Vec<MetadataHandlers>
fn callbacks_of_interest(&self) -> Vec<MetadataHandlers>
Function must return all the types of callbacks it wishes to be given
Provided Methods§
Sourcefn sample_rate_changed(&mut self, srate: NumFrames) -> i32
fn sample_rate_changed(&mut self, srate: NumFrames) -> i32
Called when the sample rate is changed
Sourcefn on_port_connect(&mut self, a: PortId, b: PortId, status: PortConnectStatus)
fn on_port_connect(&mut self, a: PortId, b: PortId, status: PortConnectStatus)
Called when ports are connected