MetadataHandler

Trait MetadataHandler 

Source
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§

Source

fn callbacks_of_interest(&self) -> Vec<MetadataHandlers>

Function must return all the types of callbacks it wishes to be given

Provided Methods§

Source

fn sample_rate_changed(&mut self, srate: NumFrames) -> i32

Called when the sample rate is changed

Source

fn on_port_connect(&mut self, a: PortId, b: PortId, status: PortConnectStatus)

Called when ports are connected

Implementors§