Skip to main content

Config

Struct Config 

Source
pub struct Config {
Show 22 fields pub multicast_port: u16, pub base_port: u16, pub port_range: u16, pub session_id: String, pub known_peers: Vec<String>, pub multicast_addresses: Vec<String>, pub multicast_ttl: u32, pub watchdog_time_threshold: f64, pub time_update_interval: f64, pub time_update_min_probes: u32, pub time_probe_count: u32, pub time_probe_interval: f64, pub time_probe_max_rtt: f64, pub smoothing_halftime: f32, pub force_default_timestamps: bool, pub continuous_resolve_interval: f64, pub multicast_min_rtt: f64, pub unicast_min_rtt: f64, pub use_protocol_version: i32, pub allow_ipv4: bool, pub allow_ipv6: bool, pub source: String,
}
Expand description

Every value that changes what travels on the wire.

The names follow src/api_config.cpp:168-322. A value that this implementation does not act on yet is left out rather than read and ignored.

Fields§

§multicast_port: u16

The port for a multicast or broadcast query. ports.MulticastPort.

§base_port: u16

The first port of the unicast range. ports.BasePort.

§port_range: u16

How many ports the range holds. ports.PortRange.

§session_id: String

The session that a stream belongs to. lab.SessionID.

§known_peers: Vec<String>

Addresses that a resolver always sends to. lab.KnownPeers.

§multicast_addresses: Vec<String>

The groups that a query goes to, for the chosen scope.

§multicast_ttl: u32

The hop count for a multicast query.

§watchdog_time_threshold: f64

How long a quiet source stays connected. tuning.WatchdogTimeThreshold.

§time_update_interval: f64

How often the clock is measured. tuning.TimeUpdateInterval.

§time_update_min_probes: u32

How many probes an estimate needs. tuning.TimeUpdateMinProbes.

§time_probe_count: u32

How many probes one burst sends. tuning.TimeProbeCount.

§time_probe_interval: f64

The gap between two probes. tuning.TimeProbeInterval.

§time_probe_max_rtt: f64

How long a burst waits for answers. tuning.TimeProbeMaxRTT.

§smoothing_halftime: f32

The half-time of the smoothing filter. tuning.SmoothingHalftime.

§force_default_timestamps: bool

When true, every pushed timestamp is replaced by the current clock. tuning.ForceDefaultTimestamps.

§continuous_resolve_interval: f64

The gap between two waves of a background resolver. tuning.ContinuousResolveInterval.

§multicast_min_rtt: f64

The shortest time a multicast wave waits. tuning.MulticastMinRTT.

§unicast_min_rtt: f64

The shortest time a unicast wave waits. tuning.UnicastMinRTT.

§use_protocol_version: i32

The protocol version that an outlet writes. tuning.UseProtocolVersion.

§allow_ipv4: bool

True when an outlet binds an IPv4 stack. ports.IPv6.

§allow_ipv6: bool

True when an outlet binds an IPv6 stack. ports.IPv6.

§source: String

Where the values came from, for a report.

Implementations§

Source§

impl Config

Source

pub fn from_ini(ini: &Ini, source: &str) -> Config

Read a configuration out of a file that was already parsed.

Trait Implementations§

Source§

impl Clone for Config

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Config

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Config

Source§

fn default() -> Config

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

Auto Trait Implementations§

§

impl Forget for Config

§

impl Freeze for Config

§

impl Move for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnsafeUnpin for Config

§

impl UnwindSafe for Config

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.