pub struct Config {Show 30 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 features: Vec<String>,
pub resume_seconds: f64,
pub resume_memory_mib: f64,
pub resume_disk_mib: f64,
pub resume_disk_path: Option<String>,
pub fallback_discovery: FallbackDiscovery,
pub require_encryption: bool,
pub encryption_key: Option<String>,
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: u16The port for a multicast or broadcast query. ports.MulticastPort.
base_port: u16The first port of the unicast range. ports.BasePort.
port_range: u16How many ports the range holds. ports.PortRange.
session_id: StringThe 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: u32The hop count for a multicast query.
watchdog_time_threshold: f64How long a quiet source stays connected. tuning.WatchdogTimeThreshold.
time_update_interval: f64How often the clock is measured. tuning.TimeUpdateInterval.
time_update_min_probes: u32How many probes an estimate needs. tuning.TimeUpdateMinProbes.
time_probe_count: u32How many probes one burst sends. tuning.TimeProbeCount.
time_probe_interval: f64The gap between two probes. tuning.TimeProbeInterval.
time_probe_max_rtt: f64How long a burst waits for answers. tuning.TimeProbeMaxRTT.
smoothing_halftime: f32The half-time of the smoothing filter. tuning.SmoothingHalftime.
force_default_timestamps: boolWhen true, every pushed timestamp is replaced by the current clock.
tuning.ForceDefaultTimestamps.
continuous_resolve_interval: f64The gap between two waves of a background resolver.
tuning.ContinuousResolveInterval.
multicast_min_rtt: f64The shortest time a multicast wave waits. tuning.MulticastMinRTT.
unicast_min_rtt: f64The shortest time a unicast wave waits. tuning.UnicastMinRTT.
use_protocol_version: i32The protocol version that an outlet writes. tuning.UseProtocolVersion.
allow_ipv4: boolTrue when an outlet binds an IPv4 stack. ports.IPv6.
allow_ipv6: boolTrue when an outlet binds an IPv6 stack. ports.IPv6.
features: Vec<String>The labstream features that this process can use, for example seq.
labstream.Features. liblsl does not read this key. The value {}
turns every feature off. docs/extensions.md.
resume_seconds: f64The time limit of the resume history, in seconds.
labstream.ResumeSeconds, 30 s by default. The value 0 turns the
history off.
docs/extensions.md, section resume.
resume_memory_mib: f64The memory limit of the resume history, in MiB.
labstream.ResumeMemory.
resume_disk_mib: f64The disk spool limit of the resume history, in MiB.
labstream.ResumeDisk, 0 by default (memory only).
docs/roadmap.md, step 3.
resume_disk_path: Option<String>Optional directory for disk spool files (labstream.ResumeDiskPath).
None uses the system temporary directory.
fallback_discovery: FallbackDiscoveryWhen fallback discovery runs. labstream.FallbackDiscovery.
docs/discovery.md.
require_encryption: boolWhen true, refuse any feed connection that does not negotiate enc/1
(labstream.RequireEncryption, off by default, docs/roadmap.md, step 14).
encryption_key: Option<String>Optional pre-shared key mixed into the enc/1 key derivation for mutual
peer authentication (labstream.EncryptionKey, empty by default).
source: StringWhere the values came from, for a report.
Implementations§
Source§impl Config
impl Config
Sourcepub fn history_limits(&self) -> HistoryLimits
pub fn history_limits(&self) -> HistoryLimits
The limits of the resume history from labstream.ResumeSeconds,
labstream.ResumeMemory, labstream.ResumeDisk, and
labstream.ResumeDiskPath.