pub struct RouteInformation { /* private fields */ }
Expand description
Builder for a Route Information option.
See RFC 4191 section 2.3.
Implementations§
Source§impl RouteInformation
impl RouteInformation
Sourcepub fn new(
prefix: Subnet<Ipv6Addr>,
route_lifetime_seconds: u32,
preference: RoutePreference,
) -> Self
pub fn new( prefix: Subnet<Ipv6Addr>, route_lifetime_seconds: u32, preference: RoutePreference, ) -> Self
Returns a new Route Information option builder.
Sourcepub fn preference(&self) -> RoutePreference
pub fn preference(&self) -> RoutePreference
The preference of the route.
Sourcepub fn route_lifetime(&self) -> Option<NonZeroNdpLifetime>
pub fn route_lifetime(&self) -> Option<NonZeroNdpLifetime>
Returns the lifetime of the route.
Trait Implementations§
Source§impl Debug for RouteInformation
impl Debug for RouteInformation
Source§impl PartialEq for RouteInformation
impl PartialEq for RouteInformation
impl Eq for RouteInformation
impl StructuralPartialEq for RouteInformation
Auto Trait Implementations§
impl Freeze for RouteInformation
impl RefUnwindSafe for RouteInformation
impl Send for RouteInformation
impl Sync for RouteInformation
impl Unpin for RouteInformation
impl UnwindSafe for RouteInformation
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