pub struct DiscoveryConfig {
pub discovery_name: String,
pub announce_interval: u64,
pub stamp_value: u8,
pub reachable_on: Option<String>,
pub interface_type: String,
pub listen_port: Option<u16>,
pub latitude: Option<f64>,
pub longitude: Option<f64>,
pub height: Option<f64>,
}Expand description
Per-interface discovery configuration parsed from config file.
Fields§
§discovery_name: StringHuman-readable name to advertise (defaults to interface name).
announce_interval: u64Announce interval in seconds (default 21600 = 6h, min 300 = 5min).
stamp_value: u8Stamp cost for discovery PoW (default 14).
reachable_on: Option<String>IP/hostname this interface is reachable on.
interface_type: StringInterface type string (e.g. “BackboneInterface”).
listen_port: Option<u16>Listen port of the discoverable interface.
latitude: Option<f64>Geographic latitude in decimal degrees.
longitude: Option<f64>Geographic longitude in decimal degrees.
height: Option<f64>Height/altitude in meters.
Trait Implementations§
Source§impl Clone for DiscoveryConfig
impl Clone for DiscoveryConfig
Source§fn clone(&self) -> DiscoveryConfig
fn clone(&self) -> DiscoveryConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DiscoveryConfig
impl RefUnwindSafe for DiscoveryConfig
impl Send for DiscoveryConfig
impl Sync for DiscoveryConfig
impl Unpin for DiscoveryConfig
impl UnsafeUnpin for DiscoveryConfig
impl UnwindSafe for DiscoveryConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more