Struct everscale_network::adnl::NodeOptions
source · 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 use_loopback_for_neighbours: bool,
pub version: Option<u16>,
}Expand description
ADNL node configuration
Fields
query_min_timeout_ms: u64Minimal ADNL query timeout. Will override the used timeout if it is less.
Default: 500 ms
query_default_timeout_ms: u64Default ADNL query timeout. Will be used if no timeout is specified.
Default: 5000 ms
transfer_timeout_sec: u64ADNL multipart transfer timeout. It will drop the transfer if it is not completed within this timeout.
Default: 3 seconds
clock_tolerance_sec: u32Permissible time difference between remote and local clocks.
Default: 60 seconds
channel_reset_timeout_sec: u32Drop channels which had no response for this amount of time.
Default: 30 seconds
address_list_timeout_sec: u32How much time address lists from packets should be valid.
Default: 1000 seconds
packet_history_enabled: boolWhether to add additional duplicated packets check.
Default: false
packet_signature_required: boolWhether handshake packets signature is mandatory.
Default: true
force_use_priority_channels: boolWhether to use priority channels for queries.
Default: true
use_loopback_for_neighbours: boolWhether to use loopback ip to communicate with nodes on the same ip
Default: false
version: Option<u16>ADNL protocol version.
Default: None
Trait Implementations
sourceimpl Clone for NodeOptions
impl Clone for NodeOptions
sourcefn clone(&self) -> NodeOptions
fn clone(&self) -> NodeOptions
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more