Struct iroh_blobs::store::GcConfig
source · pub struct GcConfig {
pub period: Duration,
pub done_callback: Option<Box<dyn Fn() + Send>>,
}
Expand description
Configuration for the GC mark and sweep.
Fields§
§period: Duration
The period at which to execute the GC.
done_callback: Option<Box<dyn Fn() + Send>>
An optional callback called every time a GC round finishes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GcConfig
impl !RefUnwindSafe for GcConfig
impl Send for GcConfig
impl !Sync for GcConfig
impl Unpin for GcConfig
impl !UnwindSafe for GcConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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