Skip to main content

Connections

Trait Connections 

Source
pub trait Connections: Send + Sync {
    // Required methods
    fn profile(
        &self,
        name: &str,
        role: Option<&str>,
    ) -> Result<Connection, String>;
    fn identifier_quote(&self, kind: &str) -> Result<Option<String>, String>;
}
Expand description

Where connection, destination and profile() get their values. role is connection or destination; None finds the profile in whichever section has it.

Required Methods§

Source

fn profile(&self, name: &str, role: Option<&str>) -> Result<Connection, String>

Source

fn identifier_quote(&self, kind: &str) -> Result<Option<String>, String>

The identifier quote character a source plugin type reports (None: it doesn’t say).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§