Struct mdns_sd::ServiceInfo[][src]

pub struct ServiceInfo { /* fields omitted */ }
Expand description

Complete info about a Service Instance.

We can construct one PTR, one SRV and one TXT record from this info, as well as A (IPv4 Address) records.

Implementations

Creates a new service info.

my_name is the instance name, without the service type suffix. properties are optional key/value pairs for the service.

The host TTL and other TTL are set to default values.

Returns a reference of the service fullname.

This is useful, for example, in unregister.

Returns a reference of the properties from TXT records.

Returns the service’s hostname.

Returns the service’s port.

Returns the service’s addresses

Returns the service’s TTL used for SRV and Address records.

Returns the service’s TTL used for PTR and TXT records.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.