Get the global buffer pool instance
()
| 380 | |
| 381 | /// Get the global buffer pool instance |
| 382 | pub fn global_buffer_pool() -> &'static BufferPool { |
| 383 | GLOBAL_BUFFER_POOL.get_or_init(|| { |
| 384 | let config = BufferPoolConfig::from_env(); |
| 385 | BufferPool::with_config(config) |
| 386 | }) |
| 387 | } |
| 388 | |
| 389 | /// Get a buffer from the global pool |
| 390 | pub fn get_pooled_buffer() -> PooledBytesMut { |
no outgoing calls