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

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 [’LinkConfig`]

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.