Struct mhost::resolver::lookup::Lookups

source ·
pub struct Lookups { /* private fields */ }

Implementations§

source§

impl Lookups

source

pub fn new(inner: Vec<Lookup>) -> Lookups

source

pub fn empty() -> Lookups

source

pub fn len(&self) -> usize

source

pub fn is_empty(&self) -> bool

source

pub fn iter(&self) -> Iter<'_, Lookup>

source

pub fn has_records(&self) -> bool

source

pub fn responses(&self) -> Vec<&Response>

source

pub fn records(&self) -> Vec<&Record>

source

pub fn ips(&self) -> Vec<IpAddr>

source

pub fn a(&self) -> Vec<&Ipv4Addr>

source

pub fn aaaa(&self) -> Vec<&Ipv6Addr>

source

pub fn aname(&self) -> Vec<&Name>

source

pub fn cname(&self) -> Vec<&Name>

source

pub fn mx(&self) -> Vec<&MX>

source

pub fn null(&self) -> Vec<&NULL>

source

pub fn ns(&self) -> Vec<&Name>

source

pub fn ptr(&self) -> Vec<&Name>

source

pub fn soa(&self) -> Vec<&SOA>

source

pub fn srv(&self) -> Vec<&SRV>

source

pub fn txt(&self) -> Vec<&TXT>

source

pub fn unknown(&self) -> Vec<&UNKNOWN>

source

pub fn records_by_type(&self, record_type: RecordType) -> Vec<&Record>

source

pub fn rr_a(&self) -> Vec<&Record>

source

pub fn rr_aaaa(&self) -> Vec<&Record>

source

pub fn rr_aname(&self) -> Vec<&Record>

source

pub fn rr_cname(&self) -> Vec<&Record>

source

pub fn rr_mx(&self) -> Vec<&Record>

source

pub fn rr_null(&self) -> Vec<&Record>

source

pub fn rr_ns(&self) -> Vec<&Record>

source

pub fn rr_ptr(&self) -> Vec<&Record>

source

pub fn rr_soa(&self) -> Vec<&Record>

source

pub fn rr_srv(&self) -> Vec<&Record>

source

pub fn rr_txt(&self) -> Vec<&Record>

source

pub fn rr_unknown(&self) -> Vec<&Record>

source

pub fn record_types(&self) -> HashSet<RecordType>

source

pub fn merge(self, other: Self) -> Self

Merge two Lookups into one

This operation consumes both Lookups and creates a new one without cloning or copying the contained Lookups.

source

pub fn combine<T: AsRef<Self>>(&self, other: T) -> Self

Combine this Lookups with another one

This operation does not alter this or other by taking the Lookup’s from both, cloning them, and creating a new Lookups with the results.

Trait Implementations§

source§

impl AsRef<Lookups> for Lookups

source§

fn as_ref(&self) -> &Lookups

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for Lookups

source§

fn clone(&self) -> Lookups

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Lookups

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Errors for Lookups

source§

fn errors(&self) -> Box<dyn Iterator<Item = Box<&dyn Error>> + '_>

source§

impl From<Vec<Lookup>> for Lookups

source§

fn from(lookups: Vec<Lookup>) -> Self

Converts to this type from the input type.
source§

impl IntoIterator for Lookups

§

type Item = Lookup

The type of the elements being iterated over.
§

type IntoIter = IntoIter<<Lookups as IntoIterator>::Item>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl Serialize for Lookups

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'a> Statistics<'a> for Lookups

§

type StatsOut = LookupsStats<'a>

source§

fn statistics(&'a self) -> Self::StatsOut

source§

impl SummaryFormatter for Lookups

source§

fn output<W: Write>(&self, writer: &mut W, opts: &SummaryOptions) -> Result<()>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more