pub fn new_with_max_ttl(query: Query, records: Arc<Vec<Record>>) -> Self {
        let valid_until = Instant::now() + Duration::from_secs(u64::from(MAX_TTL));
        Lookup {
            query,
            records,
            valid_until,
        }
    }
/// Return new instance with given records and the maximum TTL.
Return new instance with given records and the maximum TTL.
Return new instance with given records and the maximum TTL .
pub fn new_with_max_ttl(query: Query, records: Arc<Vec<Record>>) -> Self {
        let valid_until = Instant::now() + Duration::from_secs(u64::from(MAX_TTL));
        Lookup {
            query,
            records,
            valid_until,
        }
    }
pub fn new_with_max_ttl ( query : Query , records : Arc < Vec < Record > > ) -> Self { let valid_until = Instant :: now ( ) + Duration :: from_secs ( u64 :: from ( MAX_TTL ) ) ; Lookup { query , records , valid_until , } }
Return new instance with given records and the maximum TTL.
Return new instance with given records and the maximum TTL .
query
Query
records
Arc<Vec<Record>>
query
Query
records
Arc<Vec<Record>>