pub struct MessagePools {
pub produce_request: Arc<ObjectPool<ProduceRequest>>,
pub fetch_request: Arc<ObjectPool<FetchRequest>>,
pub produce_response: Arc<ObjectPool<ProduceResponse>>,
pub fetch_response: Arc<ObjectPool<FetchResponse>>,
pub messages: Arc<ObjectPool<Vec<Message>>>,
pub byte_buffers: Arc<ObjectPool<Vec<u8>>>,
}Expand description
Specialized pools for FluxMQ message types
Fields§
§produce_request: Arc<ObjectPool<ProduceRequest>>§fetch_request: Arc<ObjectPool<FetchRequest>>§produce_response: Arc<ObjectPool<ProduceResponse>>§fetch_response: Arc<ObjectPool<FetchResponse>>§messages: Arc<ObjectPool<Vec<Message>>>§byte_buffers: Arc<ObjectPool<Vec<u8>>>Implementations§
Source§impl MessagePools
impl MessagePools
Sourcepub fn get_stats(&self) -> MessagePoolStats
pub fn get_stats(&self) -> MessagePoolStats
Get comprehensive statistics for all pools
Sourcepub fn performance_report(&self) -> String
pub fn performance_report(&self) -> String
Generate performance report
Auto Trait Implementations§
impl !RefUnwindSafe for MessagePools
impl !UnwindSafe for MessagePools
impl Freeze for MessagePools
impl Send for MessagePools
impl Sync for MessagePools
impl Unpin for MessagePools
impl UnsafeUnpin for MessagePools
Blanket Implementations§
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