2018-11-08 04:49:27 +00:00
|
|
|
use failure::Error;
|
|
|
|
|
|
|
|
mod server;
|
2018-11-08 05:47:11 +00:00
|
|
|
mod spawner;
|
2018-11-10 21:58:19 +00:00
|
|
|
mod worker;
|
2018-11-08 04:49:27 +00:00
|
|
|
|
2018-11-10 21:58:19 +00:00
|
|
|
pub use crate::{server::ServerConfig, spawner::SpawnerConfig, worker::WorkerConfig};
|
2018-11-08 04:49:27 +00:00
|
|
|
|
|
|
|
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()),
|
|
|
|
}
|
|
|
|
}
|