#[non_exhaustive]pub struct ServiceRecord {
pub service_type: &'static str,
pub port: u16,
pub txt: TxtRecord,
}Available on crate feature
alloc only.Expand description
One service an advertisement registers.
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.service_type: &'static strThe service type, without a domain.
port: u16The port.
txt: TxtRecordThe TXT record.
Trait Implementations§
Source§impl Clone for ServiceRecord
impl Clone for ServiceRecord
Source§impl Debug for ServiceRecord
impl Debug for ServiceRecord
impl Eq for ServiceRecord
Source§impl PartialEq for ServiceRecord
impl PartialEq for ServiceRecord
impl StructuralPartialEq for ServiceRecord
Auto Trait Implementations§
impl Freeze for ServiceRecord
impl RefUnwindSafe for ServiceRecord
impl Send for ServiceRecord
impl Sync for ServiceRecord
impl Unpin for ServiceRecord
impl UnsafeUnpin for ServiceRecord
impl UnwindSafe for ServiceRecord
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