pub struct ManagedAddresses {
pub mask: SubnetMask,
pub pool_range_start: Ipv4Addr,
pub pool_range_stop: Ipv4Addr,
}
Expand description
The IP addresses which the server will manage and lease to clients.
Fields§
§mask: SubnetMask
The subnet mask of the subnet for which the server will manage addresses.
pool_range_start: Ipv4Addr
The inclusive starting address of the range of managed addresses.
pool_range_stop: Ipv4Addr
The exclusive stopping address of the range of managed addresses.
Implementations§
Source§impl ManagedAddresses
impl ManagedAddresses
Sourcepub fn pool_range(&self) -> impl Iterator<Item = Ipv4Addr>
pub fn pool_range(&self) -> impl Iterator<Item = Ipv4Addr>
Returns an iterator of the Ipv4Addr
s from pool_range_start
, inclusive, to
pool_range_stop
, exclusive.
Sourcepub fn pool_range_size(&self) -> Result<u32, TryFromIntError>
pub fn pool_range_size(&self) -> Result<u32, TryFromIntError>
Returns the number of Ipv4Addr
s from pool_range_start
, inclusive, to
pool_range_stop
, exclusive.
Trait Implementations§
Source§impl Clone for ManagedAddresses
impl Clone for ManagedAddresses
Source§fn clone(&self) -> ManagedAddresses
fn clone(&self) -> ManagedAddresses
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 ManagedAddresses
impl Debug for ManagedAddresses
Source§impl<'de> Deserialize<'de> for ManagedAddresses
impl<'de> Deserialize<'de> for ManagedAddresses
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<AddressPool> for ManagedAddresses
impl FidlCompatible<AddressPool> for ManagedAddresses
type FromError = Error
type IntoError = Infallible
fn try_from_fidl(fidl: AddressPool) -> Result<Self, Self::FromError>
fn try_into_fidl(self) -> Result<AddressPool, Self::IntoError>
Source§impl PartialEq for ManagedAddresses
impl PartialEq for ManagedAddresses
Source§impl Serialize for ManagedAddresses
impl Serialize for ManagedAddresses
impl Copy for ManagedAddresses
impl StructuralPartialEq for ManagedAddresses
Auto Trait Implementations§
impl Freeze for ManagedAddresses
impl RefUnwindSafe for ManagedAddresses
impl Send for ManagedAddresses
impl Sync for ManagedAddresses
impl Unpin for ManagedAddresses
impl UnwindSafe for ManagedAddresses
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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
§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.