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>> for StaticAssignments
impl FidlCompatible<Vec<StaticAssignment>> 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 for StaticAssignments
impl PartialEq for StaticAssignments
Source§impl Serialize for StaticAssignments
impl Serialize for StaticAssignments
impl StructuralPartialEq for StaticAssignments
Auto Trait Implementations§
impl Freeze for StaticAssignments
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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§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.