Struct mdns_sd::TxtProperty
source · pub struct TxtProperty { /* private fields */ }Expand description
Represents a property in a TXT record.
Implementations§
source§impl TxtProperty
impl TxtProperty
Trait Implementations§
source§impl Clone for TxtProperty
impl Clone for TxtProperty
source§fn clone(&self) -> TxtProperty
fn clone(&self) -> TxtProperty
Returns a copy 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 TxtProperty
impl Debug for TxtProperty
Mimic the default debug output for a struct, with a twist:
- If self.var is UTF-8, will output it as a string in double quotes.
- If self.var is not UTF-8, will output its bytes as in hex.
source§impl Display for TxtProperty
impl Display for TxtProperty
source§impl<K, V> From<&(K, V)> for TxtProperty
impl<K, V> From<&(K, V)> for TxtProperty
Supports constructing from a tuple.
source§impl From<&str> for TxtProperty
impl From<&str> for TxtProperty
Support a property that has no value.
source§impl<K, V> From<(K, V)> for TxtProperty
impl<K, V> From<(K, V)> for TxtProperty
source§impl PartialEq for TxtProperty
impl PartialEq for TxtProperty
impl Eq for TxtProperty
impl StructuralPartialEq for TxtProperty
Auto Trait Implementations§
impl Freeze for TxtProperty
impl RefUnwindSafe for TxtProperty
impl Send for TxtProperty
impl Sync for TxtProperty
impl Unpin for TxtProperty
impl UnwindSafe for TxtProperty
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)