pub trait PoolMonitor: Send + Sync {
// Required methods
fn id(&self) -> ArrayString<64>;
fn space_left(&self) -> usize;
fn total_size(&self) -> usize;
fn buffer_size(&self) -> usize;
}
Expand description
Trait for a Pool to exposed to be monitored by the monitoring API.
Required Methods§
Sourcefn id(&self) -> ArrayString<64>
fn id(&self) -> ArrayString<64>
A unique and descriptive identifier for the pool.
Sourcefn space_left(&self) -> usize
fn space_left(&self) -> usize
Number of buffer slots left in the pool.
Sourcefn total_size(&self) -> usize
fn total_size(&self) -> usize
Total size of the pool in number of buffers.
Sourcefn buffer_size(&self) -> usize
fn buffer_size(&self) -> usize
Size of one buffer