Skip to main content

BufferPooler

Trait BufferPooler 

Source
pub trait BufferPooler:
    Clone
    + 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 not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl BufferPooler for commonware_runtime::deterministic::Context

Source§

impl BufferPooler for commonware_runtime::tokio::Context

Source§

impl<C> BufferPooler for Cell<C>
where C: BufferPooler,