Struct trust_dns_client::client::SyncDnssecClient
source · [−]pub struct SyncDnssecClient<CC: ClientConnection> { /* private fields */ }
dnssec
only.Expand description
A DNS client which will validate DNSSec records upon receipt
Implementations
sourceimpl<CC: ClientConnection> SyncDnssecClient<CC>
impl<CC: ClientConnection> SyncDnssecClient<CC>
Trait Implementations
sourceimpl<CC: ClientConnection> Client for SyncDnssecClient<CC>
impl<CC: ClientConnection> Client for SyncDnssecClient<CC>
type Response = Pin<Box<dyn Stream<Item = Result<DnsResponse, ProtoError>> + Send + 'static>>
type Response = Pin<Box<dyn Stream<Item = Result<DnsResponse, ProtoError>> + Send + 'static>>
The result stream that will resolve into a DnsResponse
type Handle = AsyncDnssecClient
type Handle = AsyncDnssecClient
The AsyncClient type used
sourcefn 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
sourcefn 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
sourcefn 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 client
sourcefn 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
sourcefn notify<R>(
&mut self,
name: Name,
query_class: DNSClass,
query_type: RecordType,
rrset: Option<R>
) -> ClientResult<DnsResponse> where
R: Into<RecordSet>,
fn notify<R>(
&mut self,
name: Name,
query_class: DNSClass,
query_type: RecordType,
rrset: Option<R>
) -> ClientResult<DnsResponse> where
R: Into<RecordSet>,
Sends a NOTIFY message to the remote system Read more
sourcefn create<R>(&self, rrset: R, zone_origin: Name) -> ClientResult<DnsResponse> where
R: Into<RecordSet>,
fn create<R>(&self, rrset: R, zone_origin: Name) -> ClientResult<DnsResponse> where
R: Into<RecordSet>,
Sends a record to create on the server, this will fail if the record exists (atomicity depends on the server) Read more
sourcefn append<R>(
&self,
rrset: R,
zone_origin: Name,
must_exist: bool
) -> ClientResult<DnsResponse> where
R: Into<RecordSet>,
fn append<R>(
&self,
rrset: R,
zone_origin: Name,
must_exist: bool
) -> ClientResult<DnsResponse> where
R: Into<RecordSet>,
Appends a record to an existing rrset, optionally require the rrset to exist (atomicity depends on the server) Read more
sourcefn compare_and_swap<CR, NR>(
&self,
current: CR,
new: NR,
zone_origin: Name
) -> ClientResult<DnsResponse> where
CR: Into<RecordSet>,
NR: Into<RecordSet>,
fn compare_and_swap<CR, NR>(
&self,
current: CR,
new: NR,
zone_origin: Name
) -> ClientResult<DnsResponse> where
CR: Into<RecordSet>,
NR: Into<RecordSet>,
Compares and if it matches, swaps it for the new value (atomicity depends on the server) Read more
sourcefn delete_by_rdata<R>(
&self,
record: R,
zone_origin: Name
) -> ClientResult<DnsResponse> where
R: Into<RecordSet>,
fn delete_by_rdata<R>(
&self,
record: R,
zone_origin: Name
) -> ClientResult<DnsResponse> where
R: Into<RecordSet>,
Deletes a record (by rdata) from an rrset, optionally require the rrset to exist. Read more
sourcefn 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
sourcefn 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
sourcefn 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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more