pub struct LibResolv { /* private fields */ }
Expand description
SRV Resolver backed by libresolv
.
Implementations§
Trait Implementations§
Source§impl SrvResolver for LibResolv
impl SrvResolver for LibResolv
Source§type Record = LibResolvSrvRecord
type Record = LibResolvSrvRecord
SRV record representation produced by the resolver.
Source§type Error = LibResolvError
type Error = LibResolvError
Errors encountered during SRV resolution.
Source§fn get_srv_records_unordered<'life0, 'life1, 'async_trait>(
&'life0 self,
srv: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(Vec<Self::Record>, Instant), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_srv_records_unordered<'life0, 'life1, 'async_trait>(
&'life0 self,
srv: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(Vec<Self::Record>, Instant), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Gets the records corresponding to a srv name without sorting by priority
or shuffling based on weight, returning them along with the time they’re
valid until.
Source§fn get_srv_records<'life0, 'life1, 'async_trait>(
&'life0 self,
srv: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(Vec<Self::Record>, Instant), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_srv_records<'life0, 'life1, 'async_trait>(
&'life0 self,
srv: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(Vec<Self::Record>, Instant), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Gets the records corresponding to a srv name, sorting by priority and
shuffling based on weight, returning them along with the time they’re
valid until.
Source§fn order_srv_records(records: &mut [Self::Record], rng: impl Rng)
fn order_srv_records(records: &mut [Self::Record], rng: impl Rng)
Sorts SRV records by priority and weight per RFC 2782.
Auto Trait Implementations§
impl Freeze for LibResolv
impl RefUnwindSafe for LibResolv
impl Send for LibResolv
impl Sync for LibResolv
impl Unpin for LibResolv
impl UnwindSafe for LibResolv
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