pub struct IpStackConfig {
pub mtu: u16,
pub packet_information: bool,
pub tcp_timeout: Duration,
pub udp_timeout: Duration,
}
Fields§
§mtu: u16
§packet_information: bool
§tcp_timeout: Duration
§udp_timeout: Duration
Implementations§
Source§impl IpStackConfig
impl IpStackConfig
pub fn tcp_timeout(&mut self, timeout: Duration) -> &mut Self
pub fn udp_timeout(&mut self, timeout: Duration) -> &mut Self
pub fn mtu(&mut self, mtu: u16) -> &mut Self
pub fn packet_information(&mut self, packet_information: bool) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IpStackConfig
impl RefUnwindSafe for IpStackConfig
impl Send for IpStackConfig
impl Sync for IpStackConfig
impl Unpin for IpStackConfig
impl UnwindSafe for IpStackConfig
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