Trait crusty_core::resolver::Resolver[][src]

pub trait Resolver: Clone + Send + Sync + 'static {
    fn new_default() -> Result<Self, Error>;
fn resolve(
        &self,
        host: &str
    ) -> Pin<Box<dyn Future<Output = Result<IntoIter<SocketAddr>, Error>> + Send>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
;
fn with_net_blacklist(self, blacklist: Arc<Vec<IpNet>>) -> Self; }

Required methods

fn new_default() -> Result<Self, Error>[src]

fn resolve(
    &self,
    host: &str
) -> Pin<Box<dyn Future<Output = Result<IntoIter<SocketAddr>, Error>> + Send>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
[src]

fn with_net_blacklist(self, blacklist: Arc<Vec<IpNet>>) -> Self[src]

Implementors

impl Resolver for AsyncHyperResolver[src]

fn new_default() -> Result<Self, Error>[src]

fn with_net_blacklist(self, blacklist: Arc<Vec<IpNet>>) -> Self[src]

fn resolve(
    &self,
    name: &str
) -> Pin<Box<dyn Future<Output = Result<IntoIter<SocketAddr>, Error>> + Send>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
[src]