Struct solana_streamer::nonblocking::quic::ConnectionTable
source · struct ConnectionTable {
table: IndexMap<ConnectionTableKey, Vec<ConnectionEntry>>,
total_size: usize,
peer_type: ConnectionPeerType,
}
Fields§
§table: IndexMap<ConnectionTableKey, Vec<ConnectionEntry>>
§total_size: usize
§peer_type: ConnectionPeerType
Implementations§
source§impl ConnectionTable
impl ConnectionTable
fn new(peer_type: ConnectionPeerType) -> Self
fn prune_oldest(&mut self, max_size: usize) -> usize
fn prune_random(&mut self, sample_size: usize, threshold_stake: u64) -> usize
fn try_add_connection( &mut self, key: ConnectionTableKey, port: u16, connection: Option<Connection>, stake: u64, last_update: u64, max_connections_per_peer: usize ) -> Option<(Arc<AtomicU64>, Arc<AtomicBool>)>
fn remove_connection( &mut self, key: ConnectionTableKey, port: u16, stable_id: usize ) -> usize
Auto Trait Implementations§
impl !RefUnwindSafe for ConnectionTable
impl Send for ConnectionTable
impl Sync for ConnectionTable
impl Unpin for ConnectionTable
impl !UnwindSafe for ConnectionTable
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more