Skip to main content

RoderExtension

Trait RoderExtension 

Source
pub trait RoderExtension:
    Send
    + Sync
    + 'static {
    // Required methods
    fn manifest(&self) -> ExtensionManifest;
    fn install(&self, registry: &mut ExtensionRegistryBuilder) -> Result<()>;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<E: RoderExtension + ?Sized> RoderExtension for Arc<E>

Lets shared extension handles (e.g. distribution-supplied extension lists) be installed through the same ExtensionRegistryBuilder::install path as concrete extension values.

Implementors§