Skip to main content

Plugin

Trait Plugin 

Source
pub trait Plugin:
    Lifecycle
    + Policy
    + Sync
where Self::Context: Context,
{ const CATALOGS: &'static [Catalog]; // Provided methods fn register(_registrar: &mut Registrar) -> Result<(), RegistrationError> { ... } fn attachment(&self) -> Option<Arc<dyn Attachment<Self::Context>>> { ... } }

Required Associated Constants§

Source

const CATALOGS: &'static [Catalog]

Provided Methods§

Source

fn register(_registrar: &mut Registrar) -> Result<(), RegistrationError>

Source

fn attachment(&self) -> Option<Arc<dyn Attachment<Self::Context>>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§