Trait wireplumber::plugin::SimplePlugin

source ·
pub trait SimplePlugin: ObjectSubclass {
    type Args;

    // Required method
    fn decode_args(args: Option<Variant>) -> Result<Self::Args, Error>;

    // Provided methods
    fn instance_ref(&self) -> BorrowedObject<'_, Self::Type> { ... }
    fn init_args(&self, args: Self::Args) { ... }
    fn new_plugin(core: &Core, args: Self::Args) -> Self::Type
       where Self::Type: IsA<GObject> { ... }
}

Required Associated Types§

Required Methods§

Provided Methods§

source

fn instance_ref(&self) -> BorrowedObject<'_, Self::Type>

source

fn init_args(&self, args: Self::Args)

source

fn new_plugin(core: &Core, args: Self::Args) -> Self::Type
where Self::Type: IsA<GObject>,

Object Safety§

This trait is not object safe.

Implementors§