Struct dtn7::dtnconfig::DtnConfig [−][src]
pub struct DtnConfig {Show 20 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,
}
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
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self