pub struct Pool { /* private fields */ }Implementations§
Source§impl Pool
impl Pool
pub fn new( limits: StorageLimits, max_frames: usize, format: Arc<Format>, ) -> Result<Pool, StorageError>
pub fn new_reserved( limits: StorageLimits, max_frames: usize, format: Arc<Format>, reservation: StorageReservation, ) -> Result<Pool, StorageError>
pub fn generation(&self) -> u64
pub fn stats(&self) -> CopyStats
pub fn limits(&self) -> StorageLimits
pub fn format(&self) -> &Format
pub fn descriptor(&self) -> Arc<Format> ⓘ
pub fn max_frames(&self) -> usize
pub fn available(&self) -> usize
pub fn offer( &mut self, bytes: &[u8], header: Header, ) -> Result<OwnedBlock, StorageError>
pub fn offer_silence( &mut self, header: Header, ) -> Result<OwnedBlock, StorageError>
pub fn prepare_generation( &mut self, format: Arc<Format>, slots: usize, ) -> Result<u64, StorageError>
Auto Trait Implementations§
impl Freeze for Pool
impl RefUnwindSafe for Pool
impl Send for Pool
impl Sync for Pool
impl Unpin for Pool
impl UnsafeUnpin for Pool
impl UnwindSafe for Pool
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