pub struct ScratchRegistry { /* private fields */ }Expand description
Registry of named scratch pools.
Implementations§
Source§impl ScratchRegistry
impl ScratchRegistry
Sourcepub fn get_or_create(&self, name: &'static str) -> ScratchPoolHandle<'_>
pub fn get_or_create(&self, name: &'static str) -> ScratchPoolHandle<'_>
Get or create a scratch pool by name.
Sourcepub fn get(&self, name: &'static str) -> Option<ScratchPoolHandle<'_>>
pub fn get(&self, name: &'static str) -> Option<ScratchPoolHandle<'_>>
Get a pool by name if it exists.
Sourcepub fn stats(&self) -> Vec<ScratchPoolStats>
pub fn stats(&self) -> Vec<ScratchPoolStats>
Get stats for all pools.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ScratchRegistry
impl RefUnwindSafe for ScratchRegistry
impl !Send for ScratchRegistry
impl !Sync for ScratchRegistry
impl Unpin for ScratchRegistry
impl UnwindSafe for ScratchRegistry
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