pub struct AdaptiveBufferSizer { /* private fields */ }Expand description
Adaptive buffer sizer that adjusts buffer size based on workload
Implementations§
Source§impl AdaptiveBufferSizer
impl AdaptiveBufferSizer
Sourcepub fn current_size(&self) -> usize
pub fn current_size(&self) -> usize
Gets the current buffer size
Sourcepub fn stats(&self) -> Arc<BufferStats>
pub fn stats(&self) -> Arc<BufferStats>
Gets the buffer statistics
Sourcepub async fn maybe_adjust(&self)
pub async fn maybe_adjust(&self)
Adjusts the buffer size based on statistics
Auto Trait Implementations§
impl !Freeze for AdaptiveBufferSizer
impl !RefUnwindSafe for AdaptiveBufferSizer
impl !UnwindSafe for AdaptiveBufferSizer
impl Send for AdaptiveBufferSizer
impl Sync for AdaptiveBufferSizer
impl Unpin for AdaptiveBufferSizer
impl UnsafeUnpin for AdaptiveBufferSizer
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