pub struct MemoryPool { /* private fields */ }Expand description
Implementations§
Source§impl MemoryPool
impl MemoryPool
Sourcepub fn new(pool_size_bytes: usize, buffer_size: usize) -> StorageResult<Self>
pub fn new(pool_size_bytes: usize, buffer_size: usize) -> StorageResult<Self>
Sourcepub async fn get_buffer(&self) -> StorageResult<PooledBuffer>
pub async fn get_buffer(&self) -> StorageResult<PooledBuffer>
Sourcepub fn health_check(&self) -> bool
pub fn health_check(&self) -> bool
プールの健全性をチェック
Sourcepub async fn warmup(&self) -> StorageResult<()>
pub async fn warmup(&self) -> StorageResult<()>
プールをウォームアップ(事前バッファ作成)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemoryPool
impl !RefUnwindSafe for MemoryPool
impl Send for MemoryPool
impl Sync for MemoryPool
impl Unpin for MemoryPool
impl !UnwindSafe for MemoryPool
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