Docs.rs
  • solana-connection-cache-1.16.24
    • solana-connection-cache 1.16.24
    • Docs.rs crate page
    • Apache-2.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • anza-team
    • Dependencies
      • async-trait ^0.1.68 normal
      • bincode ^1.3.3 normal
      • futures-util ^0.3.28 normal
      • indexmap ^1.9.3 normal
      • indicatif ^0.17.4 normal
      • log ^0.4.17 normal
      • rand ^0.7.0 normal
      • rayon ^1.7.0 normal
      • rcgen ^0.10.0 normal
      • solana-measure =1.16.24 normal
      • solana-metrics =1.16.24 normal
      • solana-sdk =1.16.24 normal
      • thiserror ^1.0.40 normal
      • tokio ^1.14.1 normal
      • rand_chacha ^0.2.2 dev
      • solana-logger =1.16.24 dev
      • solana-net-utils =1.16.24 dev
    • Versions
    • 12.05% of the crate is documented
  • Go to latest version
  • Platform
    • i686-unknown-linux-gnu
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

solana_connection_cache1.16.24

BaseClientConnection

Required Associated Types

  • BlockingClientConnection
  • NonblockingClientConnection

Required Methods

  • new_blocking_connection
  • new_nonblocking_connection

Implementors

In solana_connection_cache::connection_cache

?
Change settings

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§