pub enum Mtu {
Measured(u32),
Assumed(u32),
}Expand description
An interface MTU, and whether the operating system reported it.
Variants§
Measured(u32)
The operating system reported this MTU.
Assumed(u32)
The lookup failed, or this platform has none: Ethernet’s 1500 bytes,
ASSUMED_MTU, stands in.
Implementations§
Trait Implementations§
impl Copy for Mtu
impl Eq for Mtu
impl StructuralPartialEq for Mtu
Auto Trait Implementations§
impl Freeze for Mtu
impl RefUnwindSafe for Mtu
impl Send for Mtu
impl Sync for Mtu
impl Unpin for Mtu
impl UnsafeUnpin for Mtu
impl UnwindSafe for Mtu
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