Struct smoltcp::iface::Route [−][src]
pub struct Route {
pub via_router: IpAddress,
pub preferred_until: Option<Instant>,
pub expires_at: Option<Instant>,
}
Expand description
A prefix of addresses that should be routed via a router
Fields
via_router: IpAddress
preferred_until: Option<Instant>
None
means “forever”.
expires_at: Option<Instant>
None
means “forever”.
Implementations
Returns a route to 0.0.0.0/0 via the gateway
, with no expiry.
Returns a route to ::/0 via the gateway
, with no expiry.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Route
impl UnwindSafe for Route
Blanket Implementations
Mutably borrows from an owned value. Read more