pub fn lookup_raw(&self, name: &Name, rr_type: Type, process_referrals: bool) -> LookupResult {
        match self.lookup_all_raw(name, process_referrals) {
            LookupAllResult::Found(rrset_list) => {
                if let Some(rrset) = rrset_list.lookup(rr_type) {
                    LookupResult::Found(rrset)
                } else if let Some(rrset) = rrset_list.lookup(Type::CNAME) {
                    LookupResult::Cname(rrset)
                } else {
                    LookupResult::NoRecords
                }
            }
            LookupAllResult::Referral(name, rrset) => LookupResult::Referral(name, rrset),
            LookupAllResult::NxDomain => LookupResult::NxDomain,
            LookupAllResult::WrongZone => LookupResult::WrongZone,
        }
    }
/// Looks up records for the given name and RR type, *optionally*
/// processing referrals.
///
/// If `process_referrals` is `false`, the lookup process will
/// continue below zone cuts into non-authoritative data.
/// Consequently, [`LookupResult::Referral`] will never be returned.
/// This is primarily useful for looking up glue records.
Looks up records for the given name and RR type, *optionally
processing referrals.

If `process_referrals` is `false`, the lookup process will
continue below zone cuts into non-authoritative data.
Consequently, [`LookupResult::Referral`] will never be returned.
This is primarily useful for looking up glue records.
Looks up records for the given name and RR type * optionally processing referrals . If ` process_referrals ` is ` false ` the lookup process will continue below zone cuts into non - authoritative data . Consequently [ ` LookupResult :: Referral ` ] will never be returned . This is primarily useful for looking up glue records .
pub fn lookup_raw(&self, name: &Name, rr_type: Type, process_referrals: bool) -> LookupResult {
        match self.lookup_all_raw(name, process_referrals) {
            LookupAllResult::Found(rrset_list) => {
                if let Some(rrset) = rrset_list.lookup(rr_type) {
                    LookupResult::Found(rrset)
                } else if let Some(rrset) = rrset_list.lookup(Type::CNAME) {
                    LookupResult::Cname(rrset)
                } else {
                    LookupResult::NoRecords
                }
            }
            LookupAllResult::Referral(name, rrset) => LookupResult::Referral(name, rrset),
            LookupAllResult::NxDomain => LookupResult::NxDomain,
            LookupAllResult::WrongZone => LookupResult::WrongZone,
        }
    }
pub fn lookup_raw ( & self , name : & Name , rr_type : Type , process_referrals : bool ) -> LookupResult { match self . lookup_all_raw ( name , process_referrals ) { LookupAllResult :: Found ( rrset_list ) => { if let Some ( rrset ) = rrset_list . lookup ( rr_type ) { LookupResult :: Found ( rrset ) } else if let Some ( rrset ) = rrset_list . lookup ( Type :: CNAME ) { LookupResult :: Cname ( rrset ) } else { LookupResult :: NoRecords } } LookupAllResult :: Referral ( name , rrset ) => LookupResult :: Referral ( name , rrset ) , LookupAllResult :: NxDomain => LookupResult :: NxDomain , LookupAllResult :: WrongZone => LookupResult :: WrongZone , } }
Looks up records for the given name and RR type, *optionally
processing referrals.
Looks up records for the given name and RR type * optionally processing referrals .
&self
name
&Name
rr_type
Type
process_referrals
bool
&self
name
&Name
rr_type
Type
process_referrals
bool