[−][src]Struct smoltcp::iface::Route
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".
Methods
impl Route
[src]
pub fn new_ipv4_gateway(gateway: Ipv4Address) -> Route
[src]
Returns a route to 0.0.0.0/0 via the gateway
, with no expiry.
pub fn new_ipv6_gateway(gateway: Ipv6Address) -> Route
[src]
Returns a route to ::/0 via the gateway
, with no expiry.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnwindSafe for Route
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,