pub struct PinnedBufferPoolConfig {
pub initial_buffers: usize,
pub max_buffers: usize,
pub buffer_capacity_bytes: usize,
pub allow_oversize: bool,
}Fields§
§initial_buffers: usize§max_buffers: usize§buffer_capacity_bytes: usize§allow_oversize: boolIf true, requests larger than buffer_capacity_bytes get a
one-shot oversize allocation that’s freed (not pooled) on
release. If false, oversize requests fail.
Trait Implementations§
Source§impl Clone for PinnedBufferPoolConfig
impl Clone for PinnedBufferPoolConfig
Source§fn clone(&self) -> PinnedBufferPoolConfig
fn clone(&self) -> PinnedBufferPoolConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PinnedBufferPoolConfig
impl Debug for PinnedBufferPoolConfig
Source§impl Default for PinnedBufferPoolConfig
impl Default for PinnedBufferPoolConfig
impl Copy for PinnedBufferPoolConfig
Auto Trait Implementations§
impl Freeze for PinnedBufferPoolConfig
impl RefUnwindSafe for PinnedBufferPoolConfig
impl Send for PinnedBufferPoolConfig
impl Sync for PinnedBufferPoolConfig
impl Unpin for PinnedBufferPoolConfig
impl UnsafeUnpin for PinnedBufferPoolConfig
impl UnwindSafe for PinnedBufferPoolConfig
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