#[non_exhaustive]pub struct ResolvedService {
pub ty_domain: String,
pub sub_ty_domain: Option<String>,
pub fullname: String,
pub host: String,
pub port: u16,
pub addresses: HashSet<IpAddr>,
pub txt_properties: TxtProperties,
}Expand description
Represents a resolved service as a plain data struct. This is from a client (i.e. querier) point of view.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ty_domain: StringService type and domain. For example, “_http._tcp.local.”
sub_ty_domain: Option<String>Optional service subtype and domain.
See RFC6763 section 7.1 about “Subtypes”: https://datatracker.ietf.org/doc/html/rfc6763#section-7.1 For example, “_printer._sub._http._tcp.local.”
fullname: StringFull name of the service. For example, “my-service._http._tcp.local.”
host: StringHost name of the service. For example, “my-server1.local.”
port: u16Port of the service. I.e. TCP or UDP port.
addresses: HashSet<IpAddr>Addresses of the service. IPv4 or IPv6 addresses.
txt_properties: TxtPropertiesProperties of the service, decoded from TXT record.
Implementations§
Auto Trait Implementations§
impl Freeze for ResolvedService
impl RefUnwindSafe for ResolvedService
impl Send for ResolvedService
impl Sync for ResolvedService
impl Unpin for ResolvedService
impl UnwindSafe for ResolvedService
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