Struct trust_dns_client::client::SyncClient [−][src]
The Client is abstracted over either trust_dns_client::tcp::TcpClientConnection or trust_dns_client::udp::UdpClientConnection.
Usage of TCP or UDP is up to the user. Some DNS servers disallow TCP in some cases, so if TCP double check if UDP works.
Implementations
impl<CC: ClientConnection> SyncClient<CC>
[src]
pub fn new(conn: CC) -> Self
[src]
Creates a new DNS client with the specified connection type
Arguments
conn
- theClientConnection
to use for all communication
pub fn with_signer(conn: CC, signer: Signer) -> Self
[src]
Creates a new DNS client with the specified connection type and a SIG0 signer.
This is necessary for signed update requests to update trust-dns-server entries.
Arguments
conn
- theClientConnection
to use for all communicationsigner
- signer to use, this needs an associated private key
Trait Implementations
impl<CC: ClientConnection> Client for SyncClient<CC>
[src]
type Response = DnsExchangeSend<CC::Response>
The result future that will resolve into a DnsResponse
type Handle = AsyncClient<CC::Response>
The AsyncClient type used
fn new_future(
&self
) -> Pin<Box<dyn Future<Output = Result<(Self::Handle, Box<dyn Future<Output = Result<(), ProtoError>> + Send + Unpin + 'static>), ProtoError>> + Send + 'static>>
[src]
&self
) -> Pin<Box<dyn Future<Output = Result<(Self::Handle, Box<dyn Future<Output = Result<(), ProtoError>> + Send + Unpin + 'static>), ProtoError>> + Send + 'static>>
fn spawn_client(&self) -> ClientResult<(Self::Handle, Runtime)>
[src]
fn query(
&self,
name: &Name,
query_class: DNSClass,
query_type: RecordType
) -> ClientResult<DnsResponse>
[src]
&self,
name: &Name,
query_class: DNSClass,
query_type: RecordType
) -> ClientResult<DnsResponse>
fn notify<R>(
&mut self,
name: Name,
query_class: DNSClass,
query_type: RecordType,
rrset: Option<R>
) -> ClientResult<DnsResponse> where
R: Into<RecordSet>,
[src]
&mut self,
name: Name,
query_class: DNSClass,
query_type: RecordType,
rrset: Option<R>
) -> ClientResult<DnsResponse> where
R: Into<RecordSet>,
fn create<R>(&self, rrset: R, zone_origin: Name) -> ClientResult<DnsResponse> where
R: Into<RecordSet>,
[src]
R: Into<RecordSet>,
fn append<R>(
&self,
rrset: R,
zone_origin: Name,
must_exist: bool
) -> ClientResult<DnsResponse> where
R: Into<RecordSet>,
[src]
&self,
rrset: R,
zone_origin: Name,
must_exist: bool
) -> ClientResult<DnsResponse> where
R: 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>,
[src]
&self,
current: CR,
new: NR,
zone_origin: Name
) -> ClientResult<DnsResponse> where
CR: Into<RecordSet>,
NR: Into<RecordSet>,
fn delete_by_rdata<R>(
&self,
record: R,
zone_origin: Name
) -> ClientResult<DnsResponse> where
R: Into<RecordSet>,
[src]
&self,
record: R,
zone_origin: Name
) -> ClientResult<DnsResponse> where
R: Into<RecordSet>,
fn delete_rrset(
&self,
record: Record,
zone_origin: Name
) -> ClientResult<DnsResponse>
[src]
&self,
record: Record,
zone_origin: Name
) -> ClientResult<DnsResponse>
fn delete_all(
&self,
name_of_records: Name,
zone_origin: Name,
dns_class: DNSClass
) -> ClientResult<DnsResponse>
[src]
&self,
name_of_records: Name,
zone_origin: Name,
dns_class: DNSClass
) -> ClientResult<DnsResponse>
Auto Trait Implementations
impl<CC> RefUnwindSafe for SyncClient<CC> where
CC: RefUnwindSafe,
CC: RefUnwindSafe,
impl<CC> Send for SyncClient<CC>
impl<CC> Sync for SyncClient<CC>
impl<CC> Unpin for SyncClient<CC>
impl<CC> UnwindSafe for SyncClient<CC> where
CC: UnwindSafe,
CC: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,