pub struct ForwardData {
pub query: Box<Query>,
pub name: Name,
pub soa: Box<Record<SOA>>,
pub authorities: Option<Arc<[Record]>>,
/* private fields */
}
Expand description
Data needed to process a SOA-record-based referral.
Fields§
§query: Box<Query>
Query
name: Name
Name
soa: Box<Record<SOA>>
SOA
Authority records
Implementations§
Source§impl ForwardData
impl ForwardData
Sourcepub fn new(
query: Box<Query>,
name: Name,
soa: Box<Record<SOA>>,
no_records_found: bool,
nx_domain: bool,
authorities: Option<Arc<[Record]>>,
) -> Self
pub fn new( query: Box<Query>, name: Name, soa: Box<Record<SOA>>, no_records_found: bool, nx_domain: bool, authorities: Option<Arc<[Record]>>, ) -> Self
Construct a new ForwardData
Sourcepub fn is_no_records_found(&self) -> bool
pub fn is_no_records_found(&self) -> bool
are there records?
Sourcepub fn is_nx_domain(&self) -> bool
pub fn is_nx_domain(&self) -> bool
is this nxdomain?
Trait Implementations§
Source§impl Clone for ForwardData
impl Clone for ForwardData
Source§fn clone(&self) -> ForwardData
fn clone(&self) -> ForwardData
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ForwardData
impl RefUnwindSafe for ForwardData
impl Send for ForwardData
impl Sync for ForwardData
impl Unpin for ForwardData
impl UnwindSafe for ForwardData
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