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