Docs.rs
  • solana-connection-cache-2.0.1
    • solana-connection-cache 2.0.1
    • Docs.rs crate page
    • Apache-2.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • anza-team
    • Dependencies
      • async-trait ^0.1.80 normal
      • bincode ^1.3.3 normal
      • crossbeam-channel ^0.5.13 normal
      • futures-util ^0.3.29 normal
      • indexmap ^2.2.6 normal
      • indicatif ^0.17.8 normal optional
      • log ^0.4.21 normal
      • rand ^0.8.5 normal
      • rayon ^1.10.0 normal
      • solana-measure =2.0.1 normal
      • solana-metrics =2.0.1 normal
      • solana-sdk =2.0.1 normal
      • thiserror ^1.0.61 normal
      • tokio ^1.29.1 normal
      • rand_chacha ^0.3.1 dev
      • solana-logger =2.0.1 dev
      • solana-net-utils =2.0.1 dev
    • Versions
    • 11.36% of the crate is documented
  • Go to latest version
  • Platform
    • i686-unknown-linux-gnu
    • x86_64-unknown-linux-gnu
  • Feature flags
  • Rust
    • About docs.rs
    • Privacy policy
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

solana_connection_cache2.0.1

BaseClientConnection

Required Associated Types

  • BlockingClientConnection
  • NonblockingClientConnection

Required Methods

  • new_blocking_connection
  • new_nonblocking_connection

Implementors

In solana_connection_cache::connection_cache

Trait solana_connection_cache::connection_cache::BaseClientConnection

source ·
pub trait BaseClientConnection {
    type BlockingClientConnection: BlockingClientConnection;
    type NonblockingClientConnection: NonblockingClientConnection;

    // Required methods
    fn new_blocking_connection(
        &self,
        addr: SocketAddr,
        stats: Arc<ConnectionCacheStats>,
    ) -> Arc<Self::BlockingClientConnection>;
    fn new_nonblocking_connection(
        &self,
        addr: SocketAddr,
        stats: Arc<ConnectionCacheStats>,
    ) -> Arc<Self::NonblockingClientConnection>;
}

Required Associated Types§

source

type BlockingClientConnection: BlockingClientConnection

source

type NonblockingClientConnection: NonblockingClientConnection

Required Methods§

source

fn new_blocking_connection( &self, addr: SocketAddr, stats: Arc<ConnectionCacheStats>, ) -> Arc<Self::BlockingClientConnection>

source

fn new_nonblocking_connection( &self, addr: SocketAddr, stats: Arc<ConnectionCacheStats>, ) -> Arc<Self::NonblockingClientConnection>

Implementors§