Enum dhcpv4::server::ResponseTarget
source · 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
source§fn eq(&self, other: &ResponseTarget) -> bool
fn eq(&self, other: &ResponseTarget) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResponseTarget
Auto Trait Implementations§
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
§impl<T> Encode<Ambiguous1> for T
impl<T> Encode<Ambiguous1> for T
§impl<T> Encode<Ambiguous2> for T
impl<T> Encode<Ambiguous2> for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.