20 lines
356 B
Rust
20 lines
356 B
Rust
|
use igd::Gateway;
|
||
|
|
||
|
use crate::*;
|
||
|
|
||
|
pub struct DiplonatContext {
|
||
|
pub config: config::DiplonatConfig,
|
||
|
//pub gateway: igd::Gateway
|
||
|
}
|
||
|
|
||
|
pub fn setup() -> Result<DiplonatContext, String> {
|
||
|
return Ok(DiplonatContext {
|
||
|
config: config::load_env()?,
|
||
|
//gateway: search_gateway(Default::default()).await
|
||
|
});
|
||
|
}
|
||
|
|
||
|
pub fn dloop() -> bool {
|
||
|
return true;
|
||
|
}
|