Struct hickory_client::client::SyncDnssecClient
source · pub struct SyncDnssecClient<CC: ClientConnection> { /* private fields */ }
Available on crate feature
dnssec
only.Expand description
A DNS client which will validate DNSSEC records upon receipt
Implementations§
source§impl<CC: ClientConnection> SyncDnssecClient<CC>
impl<CC: ClientConnection> SyncDnssecClient<CC>
Trait Implementations§
source§impl<CC: ClientConnection> Client for SyncDnssecClient<CC>
impl<CC: ClientConnection> Client for SyncDnssecClient<CC>
§type Response = Pin<Box<dyn Stream<Item = Result<DnsResponse, ProtoError>> + Send>>
type Response = Pin<Box<dyn Stream<Item = Result<DnsResponse, ProtoError>> + Send>>
The result stream that will resolve into a DnsResponse
§type Handle = AsyncDnssecClient
type Handle = AsyncDnssecClient
The AsyncClient type used
source§fn new_future(
&self
) -> Pin<Box<dyn Future<Output = Result<(Self::Handle, Box<dyn Future<Output = Result<(), ProtoError>> + Send + Unpin + 'static>), ProtoError>> + Send + 'static>>
fn new_future( &self ) -> Pin<Box<dyn Future<Output = Result<(Self::Handle, Box<dyn Future<Output = Result<(), ProtoError>> + Send + Unpin + 'static>), ProtoError>> + Send + 'static>>
Return the inner Futures items Read more
source§fn spawn_client(&self) -> ClientResult<(Self::Handle, Runtime)>
fn spawn_client(&self) -> ClientResult<(Self::Handle, Runtime)>
This will create a new AsyncClient and spawn it into a new Runtime
source§fn send<R: Into<DnsRequest> + Unpin + Send + 'static>(
&self,
msg: R
) -> Vec<ClientResult<DnsResponse>>
fn send<R: Into<DnsRequest> + Unpin + Send + 'static>( &self, msg: R ) -> Vec<ClientResult<DnsResponse>>
Sends an arbitrary
DnsRequest
to the clientsource§fn query(
&self,
name: &Name,
query_class: DNSClass,
query_type: RecordType
) -> ClientResult<DnsResponse>
fn query( &self, name: &Name, query_class: DNSClass, query_type: RecordType ) -> ClientResult<DnsResponse>
A classic DNS query, i.e. does not perform any DNSSEC operations Read more
source§fn notify<R>(
&mut self,
name: Name,
query_class: DNSClass,
query_type: RecordType,
rrset: Option<R>
) -> ClientResult<DnsResponse>
fn notify<R>( &mut self, name: Name, query_class: DNSClass, query_type: RecordType, rrset: Option<R> ) -> ClientResult<DnsResponse>
Sends a NOTIFY message to the remote system Read more
source§fn create<R>(&self, rrset: R, zone_origin: Name) -> ClientResult<DnsResponse>
fn create<R>(&self, rrset: R, zone_origin: Name) -> ClientResult<DnsResponse>
Sends a record to create on the server, this will fail if the record exists (atomicity
depends on the server) Read more
source§fn append<R>(
&self,
rrset: R,
zone_origin: Name,
must_exist: bool
) -> ClientResult<DnsResponse>
fn append<R>( &self, rrset: R, zone_origin: Name, must_exist: bool ) -> ClientResult<DnsResponse>
Appends a record to an existing rrset, optionally require the rrset to exist (atomicity
depends on the server) Read more
source§fn compare_and_swap<CR, NR>(
&self,
current: CR,
new: NR,
zone_origin: Name
) -> ClientResult<DnsResponse>
fn compare_and_swap<CR, NR>( &self, current: CR, new: NR, zone_origin: Name ) -> ClientResult<DnsResponse>
Compares and if it matches, swaps it for the new value (atomicity depends on the server) Read more
source§fn delete_by_rdata<R>(
&self,
record: R,
zone_origin: Name
) -> ClientResult<DnsResponse>
fn delete_by_rdata<R>( &self, record: R, zone_origin: Name ) -> ClientResult<DnsResponse>
Deletes a record (by rdata) from an rrset, optionally require the rrset to exist. Read more
source§fn delete_rrset(
&self,
record: Record,
zone_origin: Name
) -> ClientResult<DnsResponse>
fn delete_rrset( &self, record: Record, zone_origin: Name ) -> ClientResult<DnsResponse>
Deletes an entire rrset, optionally require the rrset to exist. Read more
source§fn delete_all(
&self,
name_of_records: Name,
zone_origin: Name,
dns_class: DNSClass
) -> ClientResult<DnsResponse>
fn delete_all( &self, name_of_records: Name, zone_origin: Name, dns_class: DNSClass ) -> ClientResult<DnsResponse>
Deletes all records at the specified name Read more
source§fn zone_transfer(
&self,
name: &Name,
last_soa: Option<SOA>
) -> ClientResult<BlockingStream<ClientStreamXfr<<Self as Client>::Response>>>
fn zone_transfer( &self, name: &Name, last_soa: Option<SOA> ) -> ClientResult<BlockingStream<ClientStreamXfr<<Self as Client>::Response>>>
Download all records from a zone, or all records modified since given SOA was observed.
The request will either be a AXFR Query (ask for full zone transfer) if a SOA was not
provided, or a IXFR Query (incremental zone transfer) if a SOA was provided. Read more
Auto Trait Implementations§
impl<CC> Freeze for SyncDnssecClient<CC>where
CC: Freeze,
impl<CC> RefUnwindSafe for SyncDnssecClient<CC>where
CC: RefUnwindSafe,
impl<CC> Send for SyncDnssecClient<CC>
impl<CC> Sync for SyncDnssecClient<CC>
impl<CC> Unpin for SyncDnssecClient<CC>
impl<CC> UnwindSafe for SyncDnssecClient<CC>where
CC: UnwindSafe,
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