pub struct DnsNameChange {
pub original: String,
pub new_name: String,
pub rr_type: RRType,
pub intf_name: String,
}Expand description
Represents a name change due to a name conflict resolution. See RFC 6762 section 9
Fields§
§original: StringThe original name set in ServiceInfo by the user.
new_name: StringA new name is created by appending a suffix after the original name.
- for a service instance name, the suffix is
(N), where N starts at 2. - for a host name, the suffix is
-N, where N starts at 2.
For example:
- Service name
foo._service-type._udpbecomesfoo (2)._service-type._udp - Host name
foo.local.becomesfoo-2.local.
rr_type: RRTypeThe resource record type
intf_name: StringThe interface where the name conflict and its change happened.
Trait Implementations§
Source§impl Clone for DnsNameChange
impl Clone for DnsNameChange
Source§fn clone(&self) -> DnsNameChange
fn clone(&self) -> DnsNameChange
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 moreAuto Trait Implementations§
impl Freeze for DnsNameChange
impl RefUnwindSafe for DnsNameChange
impl Send for DnsNameChange
impl Sync for DnsNameChange
impl Unpin for DnsNameChange
impl UnwindSafe for DnsNameChange
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