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>>
Object Safety§
This trait is not object safe.