pub struct ApResolver(/* private fields */);
Implementations§
Source§impl ApResolver
impl ApResolver
pub fn port_config(&self) -> Option<u16>
pub async fn try_apresolve(&self) -> Result<ApResolveData, Error>
pub async fn resolve(&self, endpoint: &str) -> Result<SocketAddress, Error>
Trait Implementations§
Source§impl Clone for ApResolver
impl Clone for ApResolver
Source§fn clone(&self) -> ApResolver
fn clone(&self) -> ApResolver
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ApResolver
impl !RefUnwindSafe for ApResolver
impl Send for ApResolver
impl Sync for ApResolver
impl Unpin for ApResolver
impl !UnwindSafe for ApResolver
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