background-jobs/jobs-server-tokio/src/lib.rs

18 lines
324 B
Rust

use failure::Error;
mod server;
mod spawner;
mod worker;
pub use crate::{server::ServerConfig, spawner::SpawnerConfig, worker::WorkerConfig};
fn coerce<T, F>(res: Result<Result<T, Error>, F>) -> Result<T, Error>
where
F: Into<Error>,
{
match res {
Ok(res) => res,
Err(e) => Err(e.into()),
}
}