Skip to main content

SourcePlugin

Trait SourcePlugin 

Source
pub trait SourcePlugin: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn connect(
        &self,
        config: &Config,
        versions: &VersionRegistry,
    ) -> Result<Box<dyn SourceSession>>;
}

Required Methods§

Source

fn name(&self) -> &str

Source

fn connect( &self, config: &Config, versions: &VersionRegistry, ) -> Result<Box<dyn SourceSession>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§