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§
source§impl 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§
source§impl Clone for ResolveResult
impl Clone for ResolveResult
source§fn clone(&self) -> ResolveResult
fn clone(&self) -> ResolveResult
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 ResolveResult
impl Debug for ResolveResult
source§impl Hash for ResolveResult
impl Hash for ResolveResult
source§impl Ord for ResolveResult
impl Ord for ResolveResult
source§fn cmp(&self, other: &ResolveResult) -> Ordering
fn cmp(&self, other: &ResolveResult) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ResolveResult
impl PartialEq for ResolveResult
source§impl PartialOrd for ResolveResult
impl PartialOrd for ResolveResult
impl Eq for ResolveResult
impl StructuralPartialEq for ResolveResult
Auto Trait Implementations§
impl Freeze for ResolveResult
impl RefUnwindSafe for ResolveResult
impl Send for ResolveResult
impl Sync for ResolveResult
impl Unpin for ResolveResult
impl UnwindSafe for ResolveResult
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)