L3L4Build

Struct L3L4Build 

Source
pub struct L3L4Build<T> { /* private fields */ }

Implementations§

Source§

impl<'a, T> L3L4Build<T>

Source

pub fn mtu(self, mtu: usize) -> Self

The MTU, i.e max size of transmit packets to be expected in Callbacks.l3_tx(). Default is 1500

Source

pub fn tcp_buffer_size(self, tcp_bufsize: usize) -> Self

Maximum TCP data in bytes buffered in the Rx AND Tx directions - the same buffer size is used for both directions. Default is 64*1024 bytes

Source

pub fn tcp_idle_timeout(self, tcp_idle_timeout: u64) -> Self

TCP idle timeout in seconds - if there is no Rx or Tx data (excluding ACKs etc..) in this period of time, the flow will get closed. Ddefault is 7200 seconds

Source

pub fn tcp_halfopen_idle_timeout(self, tcp_halfopen_idle_timeout: u64) -> Self

If the TCP session is in a half open state - i.e the remote end alone is closed or local end alone is closed - and there is no further Rx or Tx data excluding ACKs, in this period of time (in seconds), the flow is removed from the system. Default is 7200 seconds

Source

pub fn udp_idle_timeout(self, udp_idle_timeout: u64) -> Self

If there is no UDP RX or TX in this period of time (in seconds), the UDP flow is removed from the system

Source

pub fn finalize(self) -> L3L4<'a, T>

Create an L3L4 structure with all the parameters built so far

Trait Implementations§

Source§

impl<T> Default for L3L4Build<T>

Source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl<T> Freeze for L3L4Build<T>

§

impl<T> RefUnwindSafe for L3L4Build<T>
where T: RefUnwindSafe,

§

impl<T> Send for L3L4Build<T>
where T: Send,

§

impl<T> Sync for L3L4Build<T>
where T: Sync,

§

impl<T> Unpin for L3L4Build<T>
where T: Unpin,

§

impl<T> UnwindSafe for L3L4Build<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.