pub struct ChunkPoolCfg {
pub max_bytes: usize,
}Expand description
ChunkPool configuration.
Fields§
§max_bytes: usizeHard ceiling for the chunk pool; allocating a chunk past it fails
with Error::CapacityExceeded.
Implementations§
Source§impl ChunkPoolCfg
impl ChunkPoolCfg
Sourcepub const fn with_max_bytes(self, max_bytes: usize) -> Self
pub const fn with_max_bytes(self, max_bytes: usize) -> Self
Returns the config with max_bytes replaced.
Trait Implementations§
Source§impl Clone for ChunkPoolCfg
impl Clone for ChunkPoolCfg
Source§fn clone(&self) -> ChunkPoolCfg
fn clone(&self) -> ChunkPoolCfg
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChunkPoolCfg
Source§impl Debug for ChunkPoolCfg
impl Debug for ChunkPoolCfg
Source§impl Default for ChunkPoolCfg
impl Default for ChunkPoolCfg
Source§fn default() -> Self
fn default() -> Self
Same as ChunkPoolCfg::new.
impl Eq for ChunkPoolCfg
Source§impl PartialEq for ChunkPoolCfg
impl PartialEq for ChunkPoolCfg
impl StructuralPartialEq for ChunkPoolCfg
Auto Trait Implementations§
impl Freeze for ChunkPoolCfg
impl RefUnwindSafe for ChunkPoolCfg
impl Send for ChunkPoolCfg
impl Sync for ChunkPoolCfg
impl Unpin for ChunkPoolCfg
impl UnsafeUnpin for ChunkPoolCfg
impl UnwindSafe for ChunkPoolCfg
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