pub struct AetherConfig {
    pub server_retry_delay: u64,
    pub server_poll_time: u64,
    pub handshake_retry_delay: u64,
    pub connection_check_delay: u64,
    pub delta_time: u64,
    pub poll_time_us: u64,
}
Expand description

Structure to represent configuration for peer module

Fields

server_retry_delay: u64

Duration to wait for Tracker server to respond (in ms)

server_poll_time: u64

How often to poll server for new connections

handshake_retry_delay: u64

How long to wait to retry handshake after a failed attempt Also used as duration to wait to receive nonce from other peer during authentication

connection_check_delay: u64

Poll time to check if connection has been established

delta_time: u64

Magnitude by which to randomize retry delay

poll_time_us: u64

General poll time to be used to check for updates to lists shared by threads (in us)

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

Default values for AetherConfig

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

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Returns the argument unchanged.

Calls U::from(self).

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

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.