Crate background_jobs_sled_storage[−][src]
Background Jobs Sled Storage
An implementation of the Background Jobs Storage trait based on the Sled embedded database
Usage
ⓘ
use background_jobs::{ServerConfig, sled_storage::Storage}; use sled_extensions::{ConfigBuilder, Db}; let db = Db::start(ConfigBuilder::default().temporary(true).build())?; let storage = Storage::new(db)?; let queue_handle = ServerConfig::new(storage).thread_count(8).start();
Structs
Storage | The Sled-backed storage implementation |
Enums
Error | The error produced by sled storage calls |
Type Definitions
Result | A simple alias for Result<T, Error> |