pub struct ServiceRegistration {
pub service_type: String,
pub instance_name: String,
pub port: u16,
pub hostname: String,
pub txt_records: Vec<(String, String)>,
pub ttl: u32,
pub subtypes: Vec<String>,
pub ips_v4: Option<Vec<Ipv4Addr>>,
pub ips_v6: Option<Vec<Ipv6Addr>>,
}Expand description
Description of a local service to advertise via mDNS.
Fields§
§service_type: String§instance_name: String§port: u16§hostname: String§txt_records: Vec<(String, String)>§ttl: u32§subtypes: Vec<String>§ips_v4: Option<Vec<Ipv4Addr>>Override the IPv4 addresses advertised for this service.
When None, the mDNS service’s globally auto-detected addresses are used.
ips_v6: Option<Vec<Ipv6Addr>>Override the IPv6 addresses advertised for this service.
When None, the mDNS service’s globally auto-detected addresses are used.
Trait Implementations§
Source§impl Clone for ServiceRegistration
impl Clone for ServiceRegistration
Source§fn clone(&self) -> ServiceRegistration
fn clone(&self) -> ServiceRegistration
Returns a duplicate 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 ServiceRegistration
impl RefUnwindSafe for ServiceRegistration
impl Send for ServiceRegistration
impl Sync for ServiceRegistration
impl Unpin for ServiceRegistration
impl UnwindSafe for ServiceRegistration
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