pub struct AdvertiseRequest {
pub service_type: String,
pub port: u16,
pub txt: BTreeMap<String, String>,
}Expand description
An mdns.advertise request.
Fields§
§service_type: StringThe DNS-SD service type, _<name>._tcp (a trailing .local. is
accepted). TCP only: the ports a plugin may serve are TCP ports.
port: u16The port the service answers on; one of the plugin’s declared
listen_ports on this node’s profile.
txt: BTreeMap<String, String>The TXT record, at most TXT_MAX_ENTRIES entries.
Trait Implementations§
Source§impl Clone for AdvertiseRequest
impl Clone for AdvertiseRequest
Source§impl Debug for AdvertiseRequest
impl Debug for AdvertiseRequest
Source§impl<'de> Deserialize<'de> for AdvertiseRequest
impl<'de> Deserialize<'de> for AdvertiseRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AdvertiseRequest
Source§impl PartialEq for AdvertiseRequest
impl PartialEq for AdvertiseRequest
Source§impl Serialize for AdvertiseRequest
impl Serialize for AdvertiseRequest
impl StructuralPartialEq for AdvertiseRequest
Auto Trait Implementations§
impl Freeze for AdvertiseRequest
impl RefUnwindSafe for AdvertiseRequest
impl Send for AdvertiseRequest
impl Sync for AdvertiseRequest
impl Unpin for AdvertiseRequest
impl UnsafeUnpin for AdvertiseRequest
impl UnwindSafe for AdvertiseRequest
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.