#[non_exhaustive]pub struct Instance {
pub key: InstanceKey,
pub server: String,
pub port: u16,
pub txt: TxtRecord,
pub addrs: Vec<ScopedAddr>,
}Available on crate feature
alloc only.Expand description
A service instance as the table holds it.
Built with Instance::new outside this crate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: InstanceKeyThe instance.
server: StringThe SRV target of the latest report.
port: u16The SRV port of the latest report.
txt: TxtRecordThe TXT record of the latest report.
addrs: Vec<ScopedAddr>The union of every slot’s addresses, without duplicates, in the order the slots and addresses were first reported.
Implementations§
Trait Implementations§
impl Eq for Instance
impl StructuralPartialEq for Instance
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnsafeUnpin for Instance
impl UnwindSafe for Instance
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