pub struct NodeOptions {
    pub query_min_timeout_ms: u64,
    pub query_default_timeout_ms: u64,
    pub transfer_timeout_sec: u64,
    pub clock_tolerance_sec: u32,
    pub channel_reset_timeout_sec: u32,
    pub address_list_timeout_sec: u32,
    pub packet_history_enabled: bool,
    pub packet_signature_required: bool,
    pub force_use_priority_channels: bool,
    pub version: Option<u16>,
}
Expand description

ADNL node configuration

Fields

query_min_timeout_ms: u64

Minimal ADNL query timeout. Will override the used timeout if it is less.

Default: 500 ms

See Node::query, Node::query_with_prefix, Node::query_raw

query_default_timeout_ms: u64

Default ADNL query timeout. Will be used if no timeout is specified.

Default: 5000 ms

See Node::query, Node::query_with_prefix, Node::query_raw

transfer_timeout_sec: u64

ADNL multipart transfer timeout. It will drop the transfer if it is not completed within this timeout.

Default: 3 seconds

clock_tolerance_sec: u32

Permissible time difference between remote and local clocks.

Default: 60 seconds

channel_reset_timeout_sec: u32

Drop channels which had no response for this amount of time.

Default: 30 seconds

address_list_timeout_sec: u32

How much time address lists from packets should be valid.

Default: 1000 seconds

packet_history_enabled: bool

Whether to add additional duplicated packets check.

Default: false

packet_signature_required: bool

Whether handshake packets signature is mandatory.

Default: true

force_use_priority_channels: bool

Whether to use priority channels for queries.

Default: true

version: Option<u16>

ADNL protocol version.

Default: None

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

Deserialize this value from the given Serde deserializer. Read more

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

Extract a subset of the possible types in a coproduct (or get the remaining possibilities) Read more

Returns the argument unchanged.

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

Calls U::from(self).

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

Performs the indexed conversion.

Should always be Self

Consumes the current HList and returns an HList with the requested shape. Read more

The resulting type after obtaining ownership.

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

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.

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

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