Skip to main content

Plugin

Trait Plugin 

Source
pub trait Plugin {
    type Spec;
    type Factory;

    // Required methods
    fn new() -> Self
       where Self: Sized;
    fn spec(&self) -> &Self::Spec;
    fn factory(&self) -> &Self::Factory;
    fn into_parts(self: Box<Self>) -> (Self::Spec, Self::Factory);
}

Required Associated Types§

Required Methods§

Source

fn new() -> Self
where Self: Sized,

Source

fn spec(&self) -> &Self::Spec

Source

fn factory(&self) -> &Self::Factory

Source

fn into_parts(self: Box<Self>) -> (Self::Spec, Self::Factory)

Trait Implementations§

Source§

impl<S, F> Debug for dyn Plugin<Spec = S, Factory = F>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§