pub struct DhcpOffer {
pub address: String,
pub prefix: u8,
pub router: Option<String>,
pub classless_static_routes: Vec<Route>,
}Expand description
What the DHCP server offers on the utility NIC.
Note what is NOT here: router is None. The utility network has no
default gateway — the only way off your own /22 is the classless static
routes, and that is precisely why ignoring them is fatal and looks like
something else.
Fields§
§address: String§prefix: u8§router: Option<String>Option 3. Absent on the utility network.
classless_static_routes: Vec<Route>Option 121. The routes to every other utility prefix.
Implementations§
Trait Implementations§
impl Eq for DhcpOffer
impl StructuralPartialEq for DhcpOffer
Auto Trait Implementations§
impl Freeze for DhcpOffer
impl RefUnwindSafe for DhcpOffer
impl Send for DhcpOffer
impl Sync for DhcpOffer
impl Unpin for DhcpOffer
impl UnsafeUnpin for DhcpOffer
impl UnwindSafe for DhcpOffer
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