[][src]Struct smoltcp::iface::Route

pub struct Route {
    pub via_router: IpAddress,
    pub preferred_until: Option<Instant>,
    pub expires_at: Option<Instant>,
}

A prefix of addresses that should be routed via a router

Fields

via_router: IpAddresspreferred_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

impl Clone for Route[src]

impl Copy for Route[src]

impl Debug for Route[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.