pub struct DnsRequest {
pub ctx: CallContext,
pub host: String,
pub port: u16,
}Fields§
§ctx: CallContext§host: String§port: u16Implementations§
Source§impl DnsRequest
impl DnsRequest
pub fn new(ctx: CallContext, host: String, port: u16) -> Self
Trait Implementations§
Source§impl Clone for DnsRequest
impl Clone for DnsRequest
Source§fn clone(&self) -> DnsRequest
fn clone(&self) -> DnsRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DnsRequest
impl Debug for DnsRequest
Source§impl<R> Service<DnsRequest> for DnsResolverService<R>where
R: DnsResolver,
impl<R> Service<DnsRequest> for DnsResolverService<R>where
R: DnsResolver,
Source§type Response = Vec<SocketAddr>
type Response = Vec<SocketAddr>
Responses given by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<DnsResolverService<R> as Service<DnsRequest>>::Response, <DnsResolverService<R> as Service<DnsRequest>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<DnsResolverService<R> as Service<DnsRequest>>::Response, <DnsResolverService<R> as Service<DnsRequest>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl !RefUnwindSafe for DnsRequest
impl !UnwindSafe for DnsRequest
impl Freeze for DnsRequest
impl Send for DnsRequest
impl Sync for DnsRequest
impl Unpin for DnsRequest
impl UnsafeUnpin for DnsRequest
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