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>,
}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>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