Function synthizer::register_stream_protocol[][src]

pub fn register_stream_protocol<E, T: 'static + Send + Sync + Fn(&str, &str, usize) -> Result<CustomStreamDef, E>>(
    protocol: &str,
    callback: T
) -> Result<()>
Expand description

register a custom protocol.

The callback here must return a CustomStreamDef which represents the custom stream. Synthizer is also not safely reentrant, and the callback must not call back into Synthizer.