Struct dtn7::dtnconfig::DtnConfig [−][src]
pub struct DtnConfig {Show 21 fields
pub debug: bool,
pub unsafe_httpd: bool,
pub v4: bool,
pub v6: bool,
pub custom_timeout: bool,
pub enable_period: bool,
pub nodeid: String,
pub host_eid: EndpointID,
pub webport: u16,
pub announcement_interval: Duration,
pub discovery_destinations: HashMap<String, u32>,
pub janitor_interval: Duration,
pub endpoints: Vec<String>,
pub clas: Vec<String>,
pub services: HashMap<u8, String>,
pub routing: String,
pub peer_timeout: Duration,
pub statics: Vec<DtnPeer>,
pub workdir: PathBuf,
pub db: String,
pub generate_status_reports: bool,
}
Fields
debug: bool
unsafe_httpd: bool
v4: bool
v6: bool
custom_timeout: bool
enable_period: bool
nodeid: String
host_eid: EndpointID
webport: u16
announcement_interval: Duration
discovery_destinations: HashMap<String, u32>
janitor_interval: Duration
endpoints: Vec<String>
clas: Vec<String>
services: HashMap<u8, String>
routing: String
peer_timeout: Duration
statics: Vec<DtnPeer>
workdir: PathBuf
db: String
generate_status_reports: bool
Implementations
Helper function that adds discovery destinations to a config struct
When provided with an IP address without port the default port 3003 is appended
Updates the beacon sequence number everytime a beacon is sent to a specific IP address
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DtnConfig
impl UnwindSafe for DtnConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more