Struct async_dnssd::RegisterData [−][src]
pub struct RegisterData<'a> {
pub flags: RegisterFlags,
pub interface: Interface,
pub name: Option<&'a str>,
pub domain: Option<&'a str>,
pub host: Option<&'a str>,
pub txt: &'a [u8],
// some fields omitted
}Expand description
Optional data when registering a service; either use its default value or customize it like:
RegisterData {
txt: b"some text data",
..Default::default()
};Fields
flags: RegisterFlagsflags for registration
interface: Interfaceinterface to register service on
name: Option<&'a str>service name, defaults to hostname
domain: Option<&'a str>domain on which to advertise the service
host: Option<&'a str>the SRV target host name, defaults to local hostname(s). Address records are NOT automatically generated for other names.
txt: &'a [u8]The TXT record rdata. Empty RDATA is treated like b"\0", i.e.
a TXT record with a single empty string.
You can use TxtRecord to create the value for this field
(both TxtRecord::data and TxtRecord::rdata produce
appropriate values).
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for RegisterData<'a>
impl<'a> Send for RegisterData<'a>
impl<'a> Sync for RegisterData<'a>
impl<'a> Unpin for RegisterData<'a>
impl<'a> UnwindSafe for RegisterData<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
