pub enum ResponseTarget {
Broadcast,
Unicast(Ipv4Addr, Option<Mac>),
}
Expand description
The destinations to which a response can be targeted. A Broadcast
will be targeted to the IPv4 Broadcast address. A Unicast
will be
targeted to its Ipv4Addr
associated value. If a MacAddr
is supplied,
the target may not yet have the Ipv4Addr
assigned, so the response
should be manually directed to the MacAddr
, typically by updating the
ARP cache.
Variants§
Trait Implementations§
Source§impl Debug for ResponseTarget
impl Debug for ResponseTarget
Source§impl PartialEq for ResponseTarget
impl PartialEq for ResponseTarget
impl StructuralPartialEq for ResponseTarget
Auto Trait Implementations§
impl Freeze for ResponseTarget
impl RefUnwindSafe for ResponseTarget
impl Send for ResponseTarget
impl Sync for ResponseTarget
impl Unpin for ResponseTarget
impl UnwindSafe for ResponseTarget
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