Struct ipstack::IpStackConfig
source · 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: DurationImplementations§
source§impl IpStackConfig
impl IpStackConfig
pub fn tcp_timeout(&mut self, timeout: Duration)
pub fn udp_timeout(&mut self, timeout: Duration)
pub fn mtu(&mut self, mtu: u16)
pub fn packet_information(&mut self, packet_information: bool)
Trait Implementations§
Auto Trait Implementations§
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