pub trait ConnectionManager:
Send
+ Sync
+ 'static {
type ConnectionPool: ConnectionPool;
type NewConnectionConfig: NewConnectionConfig;
const PROTOCOL: Protocol;
// Required methods
fn new_connection_pool(&self) -> Self::ConnectionPool;
fn new_connection_config(&self) -> Self::NewConnectionConfig;
fn update_key(&self, _key: &Keypair) -> Result<(), Box<dyn Error>>;
}
Required Associated Constants§
Required Associated Types§
Required Methods§
fn new_connection_pool(&self) -> Self::ConnectionPool
fn new_connection_config(&self) -> Self::NewConnectionConfig
fn update_key(&self, _key: &Keypair) -> Result<(), Box<dyn Error>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.