summaryrefslogtreecommitdiff
path: root/src/router
diff options
context:
space:
mode:
Diffstat (limited to 'src/router')
-rw-r--r--src/router/router.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/router/router.rs b/src/router/router.rs
index 7c36382..65de900 100644
--- a/src/router/router.rs
+++ b/src/router/router.rs
@@ -1,18 +1,19 @@
use emissary_core::router::Router;
use emissary_core::{Config, Ntcp2Config, SamConfig, TransitConfig};
-use emissary_util::port_mapper::{PortMapper, PortMapperConfig};
use emissary_util::reseeder::Reseeder;
use emissary_util::runtime::tokio::Runtime as TokioRuntime;
use emissary_util::storage::{Storage, StorageBundle};
use serde::{Deserialize, Serialize};
+use std::future::Future;
use std::path::PathBuf;
use std::sync::Arc;
-use std::future::Future;
pub trait RouterUtils {
fn config(&mut self) -> impl Future<Output = Result<(), Box<dyn std::error::Error>>> + Send;
fn reseed(&mut self) -> impl Future<Output = Result<(), Box<dyn std::error::Error>>> + Send;
- fn start(self) -> impl Future<Output = Result<Router<TokioRuntime>, Box<dyn std::error::Error>>> + Send;
+ fn start(
+ self,
+ ) -> impl Future<Output = Result<Router<TokioRuntime>, Box<dyn std::error::Error>>> + Send;
}
#[derive(Debug, Deserialize, Serialize)]