pub enum AddressEvent<R> {
Rejected,
Removed(R),
AssignmentStateChanged(AddressAssignmentState),
}
Expand description
Events for an addr that are produced outside of the core DHCP state machine.
Variants§
Rejected
The address was rejected during assignment. A DHCPDECLINE message should be sent.
Removed(R)
The address was removed. Unlike Rejected
, a DHCPDECLINE message should
not be sent.
Holds an opaque reason R
indicating why the address was removed.
AssignmentStateChanged(AddressAssignmentState)
The address’s assignment state changed.
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for AddressEvent<R>where
R: Freeze,
impl<R> RefUnwindSafe for AddressEvent<R>where
R: RefUnwindSafe,
impl<R> Send for AddressEvent<R>where
R: Send,
impl<R> Sync for AddressEvent<R>where
R: Sync,
impl<R> Unpin for AddressEvent<R>where
R: Unpin,
impl<R> UnwindSafe for AddressEvent<R>where
R: UnwindSafe,
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,
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