Skip to main content

BufferPooler

Trait BufferPooler 

Source
pub trait BufferPooler:
    Send
    + Sync
    + 'static {
    // Required methods
    fn network_buffer_pool(&self) -> &BufferPool;
    fn storage_buffer_pool(&self) -> &BufferPool;
}
Expand description

Interface that any runtime must implement to provide buffer pools.

Required Methods§

Source

fn network_buffer_pool(&self) -> &BufferPool

Returns the network BufferPool.

Source

fn storage_buffer_pool(&self) -> &BufferPool

Returns the storage BufferPool.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl BufferPooler for commonware_runtime::deterministic::Context

Source§

impl BufferPooler for commonware_runtime::tokio::Context