Struct aether_lib::config::AetherConfig
source · [−]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
sourceimpl Clone for AetherConfig
impl Clone for AetherConfig
sourcefn clone(&self) -> AetherConfig
fn clone(&self) -> AetherConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AetherConfig
impl Debug for AetherConfig
sourceimpl Default for AetherConfig
impl Default for AetherConfig
Default values for AetherConfig
sourceimpl<'de> Deserialize<'de> for AetherConfig where
AetherConfig: Default,
impl<'de> Deserialize<'de> for AetherConfig where
AetherConfig: Default,
sourcefn 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
sourceimpl PartialEq<AetherConfig> for AetherConfig
impl PartialEq<AetherConfig> for AetherConfig
sourcefn eq(&self, other: &AetherConfig) -> bool
fn eq(&self, other: &AetherConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AetherConfig) -> bool
fn ne(&self, other: &AetherConfig) -> bool
This method tests for !=
.
sourceimpl Serialize for AetherConfig
impl Serialize for AetherConfig
impl Copy for AetherConfig
impl StructuralPartialEq for AetherConfig
Auto Trait Implementations
impl RefUnwindSafe for AetherConfig
impl Send for AetherConfig
impl Sync for AetherConfig
impl Unpin for AetherConfig
impl UnwindSafe for AetherConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more