pub struct InstanceKey {
pub service_type: String,
pub name: String,
}Available on crate feature
alloc only.Expand description
A service instance’s identity: its type and instance name.
Fields§
§service_type: StringThe service type without a domain, such as _mqtt._tcp.
name: StringThe instance label alone.
Trait Implementations§
Source§impl Clone for InstanceKey
impl Clone for InstanceKey
Source§impl Debug for InstanceKey
impl Debug for InstanceKey
impl Eq for InstanceKey
Source§impl Hash for InstanceKey
impl Hash for InstanceKey
Source§impl Ord for InstanceKey
impl Ord for InstanceKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for InstanceKey
impl PartialEq for InstanceKey
Source§impl PartialOrd for InstanceKey
impl PartialOrd for InstanceKey
impl StructuralPartialEq for InstanceKey
Auto Trait Implementations§
impl Freeze for InstanceKey
impl RefUnwindSafe for InstanceKey
impl Send for InstanceKey
impl Sync for InstanceKey
impl Unpin for InstanceKey
impl UnsafeUnpin for InstanceKey
impl UnwindSafe for InstanceKey
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