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§
Source§impl Clone for AetherConfig
impl Clone for AetherConfig
Source§fn clone(&self) -> AetherConfig
fn clone(&self) -> AetherConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AetherConfig
impl Debug for AetherConfig
Source§impl Default for AetherConfig
Default values for AetherConfig
impl Default for AetherConfig
Default values for AetherConfig
Source§impl<'de> Deserialize<'de> for AetherConfigwhere
AetherConfig: Default,
impl<'de> Deserialize<'de> for AetherConfigwhere
AetherConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 PartialEq for AetherConfig
impl PartialEq for AetherConfig
Source§impl Serialize for AetherConfig
impl Serialize for AetherConfig
impl Copy for AetherConfig
impl StructuralPartialEq for AetherConfig
Auto Trait Implementations§
impl Freeze for AetherConfig
impl RefUnwindSafe for AetherConfig
impl Send for AetherConfig
impl Sync for AetherConfig
impl Unpin for AetherConfig
impl UnwindSafe for AetherConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more