pub struct DstCache {
pub dst_addr: IpAddr,
pub src_addr: IpAddr,
pub mac: MacAddr,
pub interface: NetworkInterface,
}Expand description
Destination mac address and interface cache
Fields§
§dst_addr: IpAddr§src_addr: IpAddr§mac: MacAddr§interface: NetworkInterfaceImplementations§
Source§impl DstCache
impl DstCache
pub fn update( dst_addr: IpAddr, src_addr: IpAddr, mac: MacAddr, interface: NetworkInterface, ) -> Result<(), PistolError>
pub fn get( dst_addr: IpAddr, ) -> Result<Option<(MacAddr, NetworkInterface)>, PistolError>
Auto Trait Implementations§
impl Freeze for DstCache
impl RefUnwindSafe for DstCache
impl Send for DstCache
impl Sync for DstCache
impl Unpin for DstCache
impl UnwindSafe for DstCache
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