pub struct ResolvedService {
pub name: String,
pub service_type: String,
pub host: String,
pub ip: String,
pub port: u16,
pub txt: HashMap<String, String>,
}Expand description
A resolved service instance (domain-agnostic mirror of
koi_common::types::ServiceRecord with guaranteed non-optional
fields for the browser cache).
Fields§
§name: String§service_type: String§host: String§ip: String§port: u16§txt: HashMap<String, String>Trait Implementations§
Source§impl Clone for ResolvedService
impl Clone for ResolvedService
Source§fn clone(&self) -> ResolvedService
fn clone(&self) -> ResolvedService
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 moreSource§impl Debug for ResolvedService
impl Debug for ResolvedService
Source§impl From<&ServiceRecord> for ResolvedService
impl From<&ServiceRecord> for ResolvedService
Source§fn from(record: &ServiceRecord) -> Self
fn from(record: &ServiceRecord) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResolvedService
impl RefUnwindSafe for ResolvedService
impl Send for ResolvedService
impl Sync for ResolvedService
impl Unpin for ResolvedService
impl UnsafeUnpin for ResolvedService
impl UnwindSafe for ResolvedService
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