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
impl StructuralPartialEq for ServerAction
Auto Trait Implementations§
impl Freeze for ServerAction
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more