pub struct TargetMap {
pub units: Vec<TargetSet>,
}Expand description
A collection of multiple TargetSet units.
Fields§
§units: Vec<TargetSet>Implementations§
Source§impl TargetMap
impl TargetMap
Sourcepub fn canonicalize(&mut self)
pub fn canonicalize(&mut self)
Triggers normalization for all units.
Sourcepub fn gross_targets(&mut self) -> Result<u128, TargetError>
pub fn gross_targets(&mut self) -> Result<u128, TargetError>
Returns the gross total of target connections across all units. Performs lazy normalization.
Sourcepub fn gross_ips(&mut self) -> Result<u128, TargetError>
pub fn gross_ips(&mut self) -> Result<u128, TargetError>
Returns the gross number of IP addresses across all units. Performs lazy normalization.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TargetMap
impl RefUnwindSafe for TargetMap
impl Send for TargetMap
impl Sync for TargetMap
impl Unpin for TargetMap
impl UnsafeUnpin for TargetMap
impl UnwindSafe for TargetMap
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§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>
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