pub struct BufferPoolBuilder { /* private fields */ }Expand description
Builder for one caller-owned shared payload-memory pool.
A constructed pool can be cloned and shared by several transfer-manager clients or other components. All clones use one admission ceiling, prepared-storage cache, reservation queue, and metrics domain.
Implementations§
Source§impl BufferPoolBuilder
impl BufferPoolBuilder
Sourcepub fn memory_budget(self, memory_budget: MemoryBudgetConfig) -> Self
pub fn memory_budget(self, memory_budget: MemoryBudgetConfig) -> Self
Sets the configured admission ceiling for the pool.
Sourcepub fn build(self) -> Result<BufferPool, BufferPoolBuildError>
pub fn build(self) -> Result<BufferPool, BufferPoolBuildError>
Constructs an empty pool, detecting machine memory when the selected capacity policy requires it.
Construction fixes capacity and geometry but does not reserve virtual
ranges or prepare physical memory. It reads AWS_S3_TM_DIAGNOSTICS, and
starts the pool’s maintenance thread only when that setting enables
periodic memory snapshots (memory.snapshot).
Trait Implementations§
Source§impl Clone for BufferPoolBuilder
impl Clone for BufferPoolBuilder
Source§impl Debug for BufferPoolBuilder
impl Debug for BufferPoolBuilder
Auto Trait Implementations§
impl Forget for BufferPoolBuilder
impl Freeze for BufferPoolBuilder
impl Move for BufferPoolBuilder
impl RefUnwindSafe for BufferPoolBuilder
impl Send for BufferPoolBuilder
impl Sync for BufferPoolBuilder
impl Unpin for BufferPoolBuilder
impl UnsafeUnpin for BufferPoolBuilder
impl UnwindSafe for BufferPoolBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.