pub struct BPCfg {
pub mid: u8,
pub chunk_size: usize,
pub backend: BPBackend,
}Expand description
Config for BufPool
Fields§
§mid: u8Module id used for error logging
chunk_size: usizeSize (in bytes) of a single unit (chunk of memory) returned via Allocation
backend: BPBackendBackend used for allocations
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BPCfg
impl RefUnwindSafe for BPCfg
impl Send for BPCfg
impl Sync for BPCfg
impl Unpin for BPCfg
impl UnsafeUnpin for BPCfg
impl UnwindSafe for BPCfg
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