Enum dhcpv4::server::ServerAction
source · pub enum ServerAction {
SendResponse(Message, ResponseTarget),
AddressDecline(Ipv4Addr),
AddressRelease(Ipv4Addr),
}
Expand description
This enumerates the actions a DHCP server can take in response to a
received client message. A SendResponse(Message, Ipv4Addr)
indicates
that a Message
needs to be delivered back to the client.
The server may optionally send a destination Ipv4Addr
(if the protocol
warrants it) to direct the response Message
to.
The other two variants indicate a successful processing of a client
Decline
or Release
.
Implements PartialEq
for test assertions.
Variants§
Trait Implementations§
source§impl Debug for ServerAction
impl Debug for ServerAction
source§impl PartialEq for ServerAction
impl PartialEq for ServerAction
source§fn eq(&self, other: &ServerAction) -> bool
fn eq(&self, other: &ServerAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ServerAction
Auto Trait Implementations§
impl RefUnwindSafe for ServerAction
impl Send for ServerAction
impl Sync for ServerAction
impl Unpin for ServerAction
impl UnwindSafe for ServerAction
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.