Skip to main content

ExtensionProvider

Trait ExtensionProvider 

Source
pub trait ExtensionProvider {
    // Required methods
    fn name(&self) -> &str;
    fn install(&self, protocols: &mut ProtocolRegistry);
    fn construct(
        &self,
        type_name: &str,
        arguments: &[Value],
    ) -> Result<Value, String>;
}

Required Methods§

Source

fn name(&self) -> &str

Source

fn install(&self, protocols: &mut ProtocolRegistry)

Source

fn construct( &self, type_name: &str, arguments: &[Value], ) -> Result<Value, String>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§