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: boolunsafe_httpd: boolv4: boolv6: boolcustom_timeout: boolenable_period: boolnodeid: Stringhost_eid: EndpointIDwebport: u16announcement_interval: Durationdiscovery_destinations: HashMap<String, u32>janitor_interval: Durationendpoints: Vec<String>clas: Vec<String>services: HashMap<u8, String>routing: Stringpeer_timeout: Durationstatics: Vec<DtnPeer>workdir: PathBufdb: 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.