pub struct CrossProtocolNetworkAddressTable { /* private fields */ }
Expand description
A table of network address mappings across IPv4 and IPv6
Implementations§
Source§impl CrossProtocolNetworkAddressTable
impl CrossProtocolNetworkAddressTable
Sourcepub fn insert_indefinite(&mut self, ipv4: Ipv4Addr, ipv6: Ipv6Addr)
pub fn insert_indefinite(&mut self, ipv4: Ipv4Addr, ipv6: Ipv6Addr)
Insert a new indefinite mapping
Sourcepub fn insert(&mut self, ipv4: Ipv4Addr, ipv6: Ipv6Addr, duration: Duration)
pub fn insert(&mut self, ipv4: Ipv4Addr, ipv6: Ipv6Addr, duration: Duration)
Insert a new mapping with a finite time-to-live
Sourcepub fn get_ipv6(&self, ipv4: &Ipv4Addr) -> Option<Ipv6Addr>
pub fn get_ipv6(&self, ipv4: &Ipv4Addr) -> Option<Ipv6Addr>
Get the IPv6 address for a given IPv4 address
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CrossProtocolNetworkAddressTable
impl RefUnwindSafe for CrossProtocolNetworkAddressTable
impl Send for CrossProtocolNetworkAddressTable
impl Sync for CrossProtocolNetworkAddressTable
impl Unpin for CrossProtocolNetworkAddressTable
impl UnwindSafe for CrossProtocolNetworkAddressTable
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