Trait wireplumber::plugin::AsyncPluginImpl

source ·
pub trait AsyncPluginImpl: ObjectSubclass {
    type EnableFuture: Future<Output = Result<(), Error>>;

    // Required method
    fn enable(&self, plugin: Self::Type) -> Self::EnableFuture;

    // Provided methods
    fn disable(&self) { ... }
    fn register_source(&self, source: SourceId) { ... }
}

Required Associated Types§

Required Methods§

source

fn enable(&self, plugin: Self::Type) -> Self::EnableFuture

Provided Methods§

source

fn disable(&self)

source

fn register_source(&self, source: SourceId)

Object Safety§

This trait is not object safe.

Implementors§