pub struct DiscoveredService {
pub fullname: String,
pub hostname: String,
pub port: u16,
pub addresses: Vec<String>,
pub txt: BTreeMap<String, String>,
}Expand description
One resolved service instance.
Fields§
§fullname: StringThe full service instance name.
hostname: StringThe SRV target, without the trailing dot.
port: u16§addresses: Vec<String>The addresses the instance answered with, IPv4 first, each group sorted.
txt: BTreeMap<String, String>Trait Implementations§
Source§impl Clone for DiscoveredService
impl Clone for DiscoveredService
Source§impl Debug for DiscoveredService
impl Debug for DiscoveredService
Source§impl<'de> Deserialize<'de> for DiscoveredService
impl<'de> Deserialize<'de> for DiscoveredService
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DiscoveredService
Source§impl PartialEq for DiscoveredService
impl PartialEq for DiscoveredService
Source§impl Serialize for DiscoveredService
impl Serialize for DiscoveredService
impl StructuralPartialEq for DiscoveredService
Auto Trait Implementations§
impl Freeze for DiscoveredService
impl RefUnwindSafe for DiscoveredService
impl Send for DiscoveredService
impl Sync for DiscoveredService
impl Unpin for DiscoveredService
impl UnsafeUnpin for DiscoveredService
impl UnwindSafe for DiscoveredService
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.