pub struct Service {
pub name: String,
pub regtype: String,
pub interface_index: Option<u32>,
pub domain: String,
pub event_type: ServiceEventType,
pub hostname: String,
pub port: u16,
pub txt_record: Option<HashMap<String, String>>,
}Expand description
Encapsulates information about a service
Fields§
§name: StringName of service, usually a user friendly name
regtype: StringRegistration type, i.e. _http._tcp.
interface_index: Option<u32>Interface index (unsure what this is for)
domain: StringDomain service is on, typically local.
event_type: ServiceEventTypeWhether this service is being added or not
hostname: StringHostname of service, usable with gethostbyname()
port: u16Port service is on
txt_record: Option<HashMap<String, String>>TXT record service has if any
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnwindSafe for Service
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