pub struct ResolvedSrvItem { /* private fields */ }
Expand description
An SRV record which has itself been resolved into a SocketAddr
.
Implementations§
source§impl ResolvedSrvItem
impl ResolvedSrvItem
sourcepub fn resolved(&self) -> &[SocketAddr]
pub fn resolved(&self) -> &[SocketAddr]
Returns the resolved address for this record.
Methods from Deref<Target = Srv<Dname<SmallOctets>>>§
pub const RTYPE: Rtype = Rtype::Srv
pub fn priority(&self) -> u16
pub fn weight(&self) -> u16
pub fn port(&self) -> u16
pub fn target(&self) -> &N
Trait Implementations§
source§impl Clone for ResolvedSrvItem
impl Clone for ResolvedSrvItem
source§fn clone(&self) -> ResolvedSrvItem
fn clone(&self) -> ResolvedSrvItem
Returns a copy 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 moresource§impl Debug for ResolvedSrvItem
impl Debug for ResolvedSrvItem
Auto Trait Implementations§
impl RefUnwindSafe for ResolvedSrvItem
impl Send for ResolvedSrvItem
impl Sync for ResolvedSrvItem
impl Unpin for ResolvedSrvItem
impl UnwindSafe for ResolvedSrvItem
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
source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
source§fn try_octets_into(
self
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
source§fn octets_into(self) -> Targetwhere
Self::Error: Into<Infallible>,
fn octets_into(self) -> Targetwhere Self::Error: Into<Infallible>,
Performs an infallible conversion.