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>;
// Provided method
fn string_literal(&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§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".