pub struct PoolRegistry<K: Copy + PartialEq + Eq + Hash> { /* private fields */ }Implementations§
Source§impl<K: Copy + PartialEq + Eq + Hash + Debug> PoolRegistry<K>
impl<K: Copy + PartialEq + Eq + Hash + Debug> PoolRegistry<K>
pub fn new() -> Self
pub async fn register( &mut self, slot_id: K, pool_size: usize, buffer_size: usize, )
pub fn get(&self, slot_id: K) -> &BuffersPool<K>
pub fn get_buffer_ids(&self) -> Keys<'_, K, BuffersPool<K>>
Auto Trait Implementations§
impl<K> Freeze for PoolRegistry<K>
impl<K> !RefUnwindSafe for PoolRegistry<K>
impl<K> Send for PoolRegistry<K>where
K: Send,
impl<K> Sync for PoolRegistry<K>where
K: Sync,
impl<K> Unpin for PoolRegistry<K>where
K: Unpin,
impl<K> !UnwindSafe for PoolRegistry<K>
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