Struct persist::indexed::background::Maintainer [−][src]
pub struct Maintainer<B> {
blob: Arc<BlobCache<B>>,
async_runtime: Arc<AsyncRuntime>,
metrics: Arc<Metrics>,
}
Expand description
A runtime for background asynchronous maintenance of stored data.
Fields
blob: Arc<BlobCache<B>>
async_runtime: Arc<AsyncRuntime>
metrics: Arc<Metrics>
Implementations
Returns a new Maintainer.
pub fn compact_trace(&self, req: CompactTraceReq) -> PFuture<CompactTraceRes>ⓘ
pub fn compact_trace(&self, req: CompactTraceReq) -> PFuture<CompactTraceRes>ⓘ
Asynchronously runs the requested compaction on the work pool provided at construction time.
fn compact_trace_blocking(
blob: Arc<BlobCache<B>>,
metrics: Arc<Metrics>,
req: CompactTraceReq
) -> Result<CompactTraceRes, Error>
Trait Implementations
Auto Trait Implementations
impl<B> !RefUnwindSafe for Maintainer<B>
impl<B> Send for Maintainer<B> where
B: Send,
impl<B> Sync for Maintainer<B> where
B: Send,
impl<B> Unpin for Maintainer<B>
impl<B> !UnwindSafe for Maintainer<B>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more