pub struct Blosc2Guard;
Expand description
Singleton struct for initializing blosc2 and auto destroying it when going out of scope.
Note: if you create more than one of these, the last one dropped will cause a call to blosc2_destroy
Implementations§
Source§impl Blosc2Guard
impl Blosc2Guard
Sourcepub fn get_or_init() -> Arc<Self>
pub fn get_or_init() -> Arc<Self>
Get or create the blosc2 initialization guard. If blosc2’s init has already been called this will return the existing singleton otherwise will call init and return the singleton.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Blosc2Guard
impl RefUnwindSafe for Blosc2Guard
impl Send for Blosc2Guard
impl Sync for Blosc2Guard
impl Unpin for Blosc2Guard
impl UnwindSafe for Blosc2Guard
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