pub struct IpVersions {
pub has_v4: bool,
pub has_v6: bool,
}Expand description
IP versions present in a set of addresses (hitlist targets or origin sources).
Fields§
§has_v4: bool§has_v6: boolImplementations§
Source§impl IpVersions
impl IpVersions
Sourcepub fn from_origins(configurations: &[Configuration]) -> Self
pub fn from_origins(configurations: &[Configuration]) -> Self
Collect the IP versions used by the (resolved) origin source addresses.
Sourcepub fn from_targets(targets: &[Address]) -> Self
pub fn from_targets(targets: &[Address]) -> Self
Collect the IP versions present in a list of target addresses.
Sourcepub fn file_token(&self) -> &'static str
pub fn file_token(&self) -> &'static str
Compact token for output filenames: “v4”, “v6”, or “mixed”.
Trait Implementations§
Source§impl Clone for IpVersions
impl Clone for IpVersions
Source§fn clone(&self) -> IpVersions
fn clone(&self) -> IpVersions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for IpVersions
impl Default for IpVersions
Source§fn default() -> IpVersions
fn default() -> IpVersions
Returns the “default value” for a type. Read more
Source§impl PartialEq for IpVersions
impl PartialEq for IpVersions
Source§fn eq(&self, other: &IpVersions) -> bool
fn eq(&self, other: &IpVersions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for IpVersions
impl StructuralPartialEq for IpVersions
Auto Trait Implementations§
impl Freeze for IpVersions
impl RefUnwindSafe for IpVersions
impl Send for IpVersions
impl Sync for IpVersions
impl Unpin for IpVersions
impl UnsafeUnpin for IpVersions
impl UnwindSafe for IpVersions
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].