Skip to main content

NodeConfig

Struct NodeConfig 

Source
pub struct NodeConfig {
Show 25 fields pub identity: IdentityConfig, pub leaf_only: bool, pub tick_interval_secs: u64, pub base_rtt_ms: u64, pub heartbeat_interval_secs: u64, pub link_dead_timeout_secs: u64, pub fast_link_dead_timeout_secs: u64, pub limits: LimitsConfig, pub rate_limit: RateLimitConfig, pub retry: RetryConfig, pub cache: CacheConfig, pub discovery: DiscoveryConfig, pub tree: TreeConfig, pub routing: RoutingConfig, pub bloom: BloomConfig, pub session: SessionConfig, pub buffers: BuffersConfig, pub control: ControlConfig, pub mmp: MmpConfig, pub session_mmp: SessionMmpConfig, pub ecn: EcnConfig, pub rekey: RekeyConfig, pub system_files_enabled: bool, pub worker_pools_enabled: bool, pub log_level: Option<String>,
}
Expand description

Node configuration (node.*).

Fields§

§identity: IdentityConfig

Identity configuration (node.identity.*).

§leaf_only: bool

Leaf-only mode (node.leaf_only).

§tick_interval_secs: u64

RX loop maintenance tick period in seconds (node.tick_interval_secs).

§base_rtt_ms: u64

Initial RTT estimate for new links in ms (node.base_rtt_ms).

§heartbeat_interval_secs: u64

Link heartbeat send interval in seconds (node.heartbeat_interval_secs).

§link_dead_timeout_secs: u64

Link dead timeout in seconds (node.link_dead_timeout_secs). Peers silent for this duration are removed.

§fast_link_dead_timeout_secs: u64

Accelerated link dead timeout in seconds, used in place of link_dead_timeout_secs while a recent transport.send returned a local-side errno (NetworkUnreachable / HostUnreachable / AddrNotAvailable) — direct evidence our outbound path is broken right now (interface vanished, default route flapped, etc.). No reason to wait the full receive-silence window when the kernel already told us we can’t send. Steady-state behavior is unchanged because the signal is cleared on the next successful send. (node.fast_link_dead_timeout_secs)

§limits: LimitsConfig

Resource limits (node.limits.*).

§rate_limit: RateLimitConfig

Rate limiting (node.rate_limit.*).

§retry: RetryConfig

Retry/backoff (node.retry.*).

§cache: CacheConfig

Cache parameters (node.cache.*).

§discovery: DiscoveryConfig

Discovery protocol (node.discovery.*).

§tree: TreeConfig

Spanning tree (node.tree.*).

§routing: RoutingConfig

Routing strategy (node.routing.*).

§bloom: BloomConfig

Bloom filter (node.bloom.*).

§session: SessionConfig

Session/data plane (node.session.*).

§buffers: BuffersConfig

Internal buffers (node.buffers.*).

§control: ControlConfig

Control socket (node.control.*).

§mmp: MmpConfig

Metrics Measurement Protocol — link layer (node.mmp.*).

§session_mmp: SessionMmpConfig

Metrics Measurement Protocol — session layer (node.session_mmp.*).

§ecn: EcnConfig

ECN congestion signaling (node.ecn.*).

§rekey: RekeyConfig

Rekey / session rekeying (node.rekey.*).

§system_files_enabled: bool

Enable daemon-oriented system files such as /etc/fips/hosts and /etc/fips/peers.{allow,deny}. Embedded endpoints disable this.

§worker_pools_enabled: bool

Enable off-task Unix encrypt/decrypt worker pools (node.worker_pools_enabled). Embedded/mobile endpoints can disable this to keep crypto/send work inline with the rx loop when platform extension sandboxes make OS-thread pools unsuitable.

§log_level: Option<String>

Log level (node.log_level). Case-insensitive. Valid values: trace, debug, info, warn, error. Default: info.

Implementations§

Source§

impl NodeConfig

Source

pub fn log_level(&self) -> Level

Get the log level as a tracing Level. Default: INFO.

Trait Implementations§

Source§

impl Clone for NodeConfig

Source§

fn clone(&self) -> NodeConfig

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 NodeConfig

Source§

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

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

impl Default for NodeConfig

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for NodeConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for NodeConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,