Struct aether_lib::config::LinkConfig
source · [−]pub struct LinkConfig {
pub window_size: u16,
pub ack_wait_time: u64,
pub poll_time_us: u64,
pub timeout: u64,
pub retry_delay: u64,
pub ack_only_time: u64,
pub max_retries: i16,
}
Expand description
Structure to represent configuration for link
module
Fields
window_size: u16
Window size for the link. Determines how many packets are sent in a single burst
ack_wait_time: u64
Time to wait for acknowledgement to be received
poll_time_us: u64
Poll time for shared memory structures
timeout: u64
Timeout or time of inactivity after which link is declared as broken
retry_delay: u64
Time to wait for acknowledgment before sending packets again
ack_only_time: u64
Time to wait before sending another acknowledgment only packet when primary queue is empty i.e. no more packets to be sent
max_retries: i16
Number of times a packet can be retried before link is declared as broken
Trait Implementations
sourceimpl Clone for LinkConfig
impl Clone for LinkConfig
sourcefn clone(&self) -> LinkConfig
fn clone(&self) -> LinkConfig
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 LinkConfig
impl Debug for LinkConfig
sourceimpl Default for LinkConfig
impl Default for LinkConfig
Default values for [’LinkConfig`]
sourceimpl<'de> Deserialize<'de> for LinkConfig where
LinkConfig: Default,
impl<'de> Deserialize<'de> for LinkConfig where
LinkConfig: 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<LinkConfig> for LinkConfig
impl PartialEq<LinkConfig> for LinkConfig
sourcefn eq(&self, other: &LinkConfig) -> bool
fn eq(&self, other: &LinkConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LinkConfig) -> bool
fn ne(&self, other: &LinkConfig) -> bool
This method tests for !=
.
sourceimpl Serialize for LinkConfig
impl Serialize for LinkConfig
impl Copy for LinkConfig
impl StructuralPartialEq for LinkConfig
Auto Trait Implementations
impl RefUnwindSafe for LinkConfig
impl Send for LinkConfig
impl Sync for LinkConfig
impl Unpin for LinkConfig
impl UnwindSafe for LinkConfig
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