pub struct RouteDestination {
pub address: IpAddr,
pub prefix_length: u8,
}Expand description
Destination network of a route expressed as an address and prefix length.
Fields§
§address: IpAddrNetwork address.
prefix_length: u8Prefix length in bits.
Implementations§
Source§impl RouteDestination
impl RouteDestination
Sourcepub fn new(address: IpAddr, prefix_length: u8) -> Self
pub fn new(address: IpAddr, prefix_length: u8) -> Self
Creates a new RouteDestination.
Trait Implementations§
Source§impl Clone for RouteDestination
impl Clone for RouteDestination
Source§fn clone(&self) -> RouteDestination
fn clone(&self) -> RouteDestination
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RouteDestination
impl Debug for RouteDestination
Source§impl Display for RouteDestination
impl Display for RouteDestination
Source§impl PartialEq for RouteDestination
impl PartialEq for RouteDestination
impl Eq for RouteDestination
impl StructuralPartialEq for RouteDestination
Auto Trait Implementations§
impl Freeze for RouteDestination
impl RefUnwindSafe for RouteDestination
impl Send for RouteDestination
impl Sync for RouteDestination
impl Unpin for RouteDestination
impl UnwindSafe for RouteDestination
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