pub struct DestinationKey {
pub network: u32,
pub prefix_len: u8,
}Expand description
Destination key for route table lookups
Fields§
§network: u32Network address as u32
prefix_len: u8Prefix length
Implementations§
Source§impl DestinationKey
impl DestinationKey
pub fn new(addr: Ipv4Address, prefix_len: u8) -> Self
Trait Implementations§
Source§impl Clone for DestinationKey
impl Clone for DestinationKey
Source§fn clone(&self) -> DestinationKey
fn clone(&self) -> DestinationKey
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DestinationKey
impl Debug for DestinationKey
Source§impl Ord for DestinationKey
impl Ord for DestinationKey
Source§impl PartialEq for DestinationKey
impl PartialEq for DestinationKey
Source§impl PartialOrd for DestinationKey
impl PartialOrd for DestinationKey
Source§fn partial_cmp(&self, other: &DestinationKey) -> Option<Ordering>
fn partial_cmp(&self, other: &DestinationKey) -> Option<Ordering>
impl Copy for DestinationKey
impl Eq for DestinationKey
impl StructuralPartialEq for DestinationKey
Auto Trait Implementations§
impl Freeze for DestinationKey
impl RefUnwindSafe for DestinationKey
impl Send for DestinationKey
impl Sync for DestinationKey
impl Unpin for DestinationKey
impl UnwindSafe for DestinationKey
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)