Struct dhcpv4::configuration::StaticAssignments
source · pub struct StaticAssignments(pub HashMap<MacAddress, Ipv4Addr>);
Expand description
A collection of static address assignments. Any client whose MAC address has a static assignment will be offered the assigned IP address.
Tuple Fields§
§0: HashMap<MacAddress, Ipv4Addr>
Trait Implementations§
source§impl Clone for StaticAssignments
impl Clone for StaticAssignments
source§fn clone(&self) -> StaticAssignments
fn clone(&self) -> StaticAssignments
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StaticAssignments
impl Debug for StaticAssignments
source§impl<'de> Deserialize<'de> for StaticAssignments
impl<'de> Deserialize<'de> for StaticAssignments
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FidlCompatible<Vec<StaticAssignment, Global>> for StaticAssignments
impl FidlCompatible<Vec<StaticAssignment, Global>> for StaticAssignments
type FromError = Error
type IntoError = Infallible
fn try_from_fidl(fidl: Vec<StaticAssignment>) -> Result<Self, Self::FromError>
fn try_into_fidl(self) -> Result<Vec<StaticAssignment>, Self::IntoError>
source§impl PartialEq<StaticAssignments> for StaticAssignments
impl PartialEq<StaticAssignments> for StaticAssignments
source§fn eq(&self, other: &StaticAssignments) -> bool
fn eq(&self, other: &StaticAssignments) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StaticAssignments
impl Serialize for StaticAssignments
impl StructuralPartialEq for StaticAssignments
Auto Trait Implementations§
impl RefUnwindSafe for StaticAssignments
impl Send for StaticAssignments
impl Sync for StaticAssignments
impl Unpin for StaticAssignments
impl UnwindSafe for StaticAssignments
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<F, C> IntoFidlExt<F> for Cwhere
C: FidlCompatible<F, IntoError = Infallible>,
impl<F, C> IntoFidlExt<F> for Cwhere C: FidlCompatible<F, IntoError = Infallible>,
§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.