Struct async_dnssd::ResolveResult
source · [−]pub struct ResolveResult {
pub flags: ResolvedFlags,
pub interface: Interface,
pub fullname: String,
pub host_target: String,
pub port: u16,
pub txt: Vec<u8>,
}
Expand description
Resolve result
Fields
flags: ResolvedFlags
flags
interface: Interface
interface service was resolved on
fullname: String
full name of service
host_target: String
hostname the service is provided on
port: u16
port the service is provided on (native endian)
txt: Vec<u8>
TXT RDATA describing service parameters
Implementations
sourceimpl ResolveResult
impl ResolveResult
sourcepub fn resolve_socket_address(&self) -> ResolveHost
pub fn resolve_socket_address(&self) -> ResolveHost
Lookup socket addresses for resolved service
Trait Implementations
sourceimpl Clone for ResolveResult
impl Clone for ResolveResult
sourcefn clone(&self) -> ResolveResult
fn clone(&self) -> ResolveResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ResolveResult
impl Debug for ResolveResult
sourceimpl Hash for ResolveResult
impl Hash for ResolveResult
sourceimpl Ord for ResolveResult
impl Ord for ResolveResult
sourcefn cmp(&self, other: &ResolveResult) -> Ordering
fn cmp(&self, other: &ResolveResult) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ResolveResult> for ResolveResult
impl PartialEq<ResolveResult> for ResolveResult
sourcefn eq(&self, other: &ResolveResult) -> bool
fn eq(&self, other: &ResolveResult) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ResolveResult) -> bool
fn ne(&self, other: &ResolveResult) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ResolveResult> for ResolveResult
impl PartialOrd<ResolveResult> for ResolveResult
sourcefn partial_cmp(&self, other: &ResolveResult) -> Option<Ordering>
fn partial_cmp(&self, other: &ResolveResult) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for ResolveResult
impl StructuralEq for ResolveResult
impl StructuralPartialEq for ResolveResult
Auto Trait Implementations
impl RefUnwindSafe for ResolveResult
impl Send for ResolveResult
impl Sync for ResolveResult
impl Unpin for ResolveResult
impl UnwindSafe for ResolveResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more