Trait mdns_sd::IntoTxtProperties
source · pub trait IntoTxtProperties {
// Required method
fn into_txt_properties(self) -> TxtProperties;
}Expand description
This trait allows for converting inputs into TxtProperties.
Required Methods§
fn into_txt_properties(self) -> TxtProperties
Implementations on Foreign Types§
source§impl IntoTxtProperties for Option<HashMap<String, String>>
impl IntoTxtProperties for Option<HashMap<String, String>>
Mainly for backward compatibility.
fn into_txt_properties(self) -> TxtProperties
source§impl IntoTxtProperties for HashMap<String, String>
impl IntoTxtProperties for HashMap<String, String>
fn into_txt_properties(self) -> TxtProperties
source§impl<'a, T: 'a> IntoTxtProperties for &'a [T]where
TxtProperty: From<&'a T>,
impl<'a, T: 'a> IntoTxtProperties for &'a [T]where TxtProperty: From<&'a T>,
Support Vec like [("k1", "v1"), ("k2", "v2")].