Add some short docstrings for types. (#225)

These types were missing a short docstring, leaving the comment space to
their right blank on the crate page.

Also, this takes advantage of intra-rustdoc links to link terms:
https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
This commit is contained in:
Jacob Hoffman-Andrews
2020-11-21 22:10:37 -08:00
committed by GitHub
parent fade03b54e
commit 0321ea043d
3 changed files with 4 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ use std::io::Result as IoResult;
use std::net::{SocketAddr, ToSocketAddrs};
use std::sync::Arc;
/// A custom resolver to override the default DNS behavior.
pub trait Resolver: Send + Sync {
fn resolve(&self, netloc: &str) -> IoResult<Vec<SocketAddr>>;
}