solana_connection_cache::connection_cache

Trait ConnectionManager

source
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§

Object Safety§

This trait is not object safe.

Implementors§