Expand description
Layers enabled through layers-* Cargo features.
A layer adds cross-service behavior to an Operator. Enable the matching
facade feature, construct the layer, and pass it to Operator::layer.
Layer order is observable, so review each layer’s composition notes when
combining retries, timeouts, caching, or observability.
Structs§
- Aimd
Layer layers-aimd - Adaptively pace HTTP storage requests using additive increase and multiplicative decrease (AIMD).
- Aimd
Layer Builder layers-aimd - Configures the four independent request budgets of an
AimdLayer. Each budget receives the same settings and tracks its own rate. - Async
Backtrace Layer layers-async-backtrace AsyncBacktraceLayerrecords efficient logical stack traces for asynchronous service operations, HTTP requests and response body reads, and tasks submitted through the OpenDAL executor.- Await
Tree Layer layers-await-tree AwaitTreeLayerinstruments service operations, HTTP requests and response bodies, and background tasks for actor-based applications.- Cache
Layer layers-cache - Cache aligned source read chunks in another OpenDAL operator.
- Cache
Read Request layers-cache - The source path supplied to the read cache policy.
- Capability
Check Layer layers-capability-check CapabilityCheckLayervalidates optional operation arguments against service capabilities.- Capability
Override Layer - Layer for overriding an operator’s effective capability.
- Chaos
Layer layers-chaos ChaosLayerinjects errors into services to test robustness.- Checksum
Layer layers-checksum - Request native write checksums and verify stored full-object checksums during reads.
- Concurrent
Limit Layer layers-concurrent-limit ConcurrentLimitLayerlimits concurrent storage operations.- Default
Logging Interceptor layers-logging - The DefaultLoggingInterceptor will log the message by the standard logging macro.
- Default
Retry Interceptor layers-retry - The DefaultRetryInterceptor logs each retry error at warn level.
- Dtrace
Layer Linux and layers-dtrace DtraceLayersupports User Statically-Defined Tracing (USDT) on Linux.- Fastmetrics
Layer layers-fastmetrics FastmetricsLayerrecords OpenDAL operation and HTTP fetch metrics with fastmetrics.- Fastmetrics
Layer Builder layers-fastmetrics FastmetricsLayerBuilderis a config builder to build aFastmetricsLayer.- Fastrace
Layer layers-fastrace FastraceLayertraces OpenDAL operations with fastrace.- Foyer
Key layers-foyer FoyerKeyis a key for the foyer cache. It implements foyer’s [Code] trait directly, so the layer does not depend on foyer’sserdefeature (and its bincode dependency).- Foyer
Layer layers-foyer FoyerLayercaches OpenDAL data with foyer.- Foyer
Value layers-foyer FoyerValuestores buffered object data in Foyer.- Hedge
Layer layers-hedge - Issues duplicate attempts for slow
statand read requests. - Hotpath
Layer layers-hotpath HotpathLayerprofiles every operation with hotpath.- Immutable
Index Layer layers-immutable-index ImmutableIndexLayeradds an immutable in-memory index to a storage service.- Logging
Layer layers-logging LoggingLayerrecords OpenDAL operations and outbound HTTP requests with log.- Metrics
Layer layers-metrics MetricsLayerrecords every operation with metrics.- Mime
Guess Layer layers-mime-guess MimeGuessLayersetsContent-Typefrom a path’s file extension.- Otel
Metrics Layer layers-otel-metrics OtelMetricsLayerrecords OpenDAL operation and HTTP fetch metrics with [opentelemetry::metrics].- Otel
Metrics Layer Builder layers-otel-metrics OtelMetricsLayerBuilderis a config builder to build aOtelMetricsLayer.- Otel
Trace Layer layers-otel-trace OtelTraceLayertraces OpenDAL operations with OpenTelemetry.- Prometheus
Client Layer layers-prometheus-client PrometheusClientLayerrecords OpenDAL operation and HTTP fetch metrics with prometheus-client.- Prometheus
Client Layer Builder layers-prometheus-client PrometheusClientLayerBuilderis a config builder to build aPrometheusClientLayer.- Prometheus
Layer layers-prometheus PrometheusLayerrecords OpenDAL operation and HTTP fetch metrics with prometheus.- Prometheus
Layer Builder layers-prometheus PrometheusLayerBuilderis a config builder to build aPrometheusLayer.- Retry
Event layers-retry - Context passed to
RetryInterceptorbefore each retry sleep. - Retry
Layer layers-retry RetryLayerretries temporarily failed operations.- Route
Layer layers-route RouteLayerroutes operations to different operators by matching paths against glob patterns.- Route
Layer Builder layers-route - Builder for
RouteLayer. - Sanity
Check Layer layers-sanity-check - Detects duplicate entries during a listing.
- Simulate
Layer - Simulate missing capabilities for a storage service.
- Tail
CutLayer layers-tail-cut TailCutLayermonitors request latency and cancels requests that run significantly slower than the historical baseline (for example, slower than P95).- Tail
CutLayer Builder layers-tail-cut - Builder for TailCutLayer.
- Throttle
Layer layers-throttle ThrottleLayerlimits bandwidth for storage services.- Timeout
Layer layers-timeout TimeoutLayeradds deadlines to operations so slow or stalled work cannot hang indefinitely.- Tracing
Layer layers-tracing TracingLayertraces every operation with tracing.
Enums§
- Cache
Decision layers-cache - Select how the cache handles a reader.
Traits§
- Cache
Policy layers-cache - Decide by source path whether to cache reads and how long their metadata remains fresh.
- Concurrent
Limit Semaphore layers-concurrent-limit - ConcurrentLimitSemaphore abstracts a semaphore-like concurrency primitive that yields an owned permit released on drop.
- Logging
Interceptor layers-logging - LoggingInterceptor customizes log emission for OpenDAL operations.
- Retry
Budget layers-retry - Controls which retries
RetryLayermay issue after temporary failures. - Retry
Interceptor layers-retry - RetryInterceptor observes retry attempts before the retry sleep.
Functions§
- register_
chaos_ layer layers-chaos - Register the
chaoslayer with an operator registry. - register_
concurrent_ limit_ layer layers-concurrent-limit - Register the
concurrent_limitlayer with an operator registry. - register_
logging_ layer layers-logging - Register the
logginglayer with an operator registry. - register_
mime_ guess_ layer layers-mime-guess - Register the
mime_guesslayer with an operator registry. - register_
retry_ layer layers-retry - Register the
retrylayer with an operator registry. - register_
throttle_ layer layers-throttle - Register the
throttlelayer with an operator registry. - register_
timeout_ layer layers-timeout - Register the
timeoutlayer with an operator registry. - register_
tracing_ layer layers-tracing - Register the
tracinglayer with an operator registry.