pub struct PluginBuilder { /* private fields */ }Expand description
Safe builder used by Rust plugin authors.
Implementations§
Source§impl PluginBuilder
impl PluginBuilder
pub fn new( plugin_id: impl Into<String>, plugin_name: impl Into<String>, ) -> Result<Self, PluginBuildError>
pub fn with_post_download_processor<P>(
self,
instance_id: impl Into<String>,
processor: P,
) -> Result<Self, PluginBuildError>where
P: PostDownloadProcessor + 'static,
pub fn with_pipeline_event_hook<H>(
self,
instance_id: impl Into<String>,
hook: H,
) -> Result<Self, PluginBuildError>where
H: PipelineEventHook + 'static,
pub fn with_benchmark_sink<S>(
self,
instance_id: impl Into<String>,
sink: S,
) -> Result<Self, PluginBuildError>where
S: BenchmarkSink + 'static,
pub fn with_native_decoder<F>(
self,
instance_id: impl Into<String>,
factory: F,
) -> Result<Self, PluginBuildError>where
F: NativeDecoderPluginFactory + 'static,
pub fn with_frame_processor<F>(
self,
instance_id: impl Into<String>,
factory: F,
) -> Result<Self, PluginBuildError>where
F: FrameProcessorPluginFactory + 'static,
pub fn with_audio_processor<F>(
self,
instance_id: impl Into<String>,
factory: F,
) -> Result<Self, PluginBuildError>where
F: AudioProcessorPluginFactory + 'static,
pub fn with_source_normalizer_packet<F>(
self,
instance_id: impl Into<String>,
factory: F,
) -> Result<Self, PluginBuildError>where
F: SourceNormalizerPacketPluginFactory + 'static,
pub fn with_source_normalizer_resource<F>(
self,
instance_id: impl Into<String>,
factory: F,
) -> Result<Self, PluginBuildError>where
F: SourceNormalizerResourcePluginFactory + 'static,
pub fn build(self) -> Result<Plugin, PluginBuildError>
Auto Trait Implementations§
impl !RefUnwindSafe for PluginBuilder
impl !UnwindSafe for PluginBuilder
impl Freeze for PluginBuilder
impl Send for PluginBuilder
impl Sync for PluginBuilder
impl Unpin for PluginBuilder
impl UnsafeUnpin for PluginBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more