Struct ipfs_embed::MdnsConfig [−]
Expand description
Configuration for mDNS.
Fields
ttl: DurationTTL to use for mdns records.
query_interval: DurationInterval at which to poll the network for new peers. This isn’t necessary during normal operation but avoids the case that an initial packet was lost and not discovering any peers until a new peer joins the network. Receiving an mdns packet resets the timer preventing unnecessary traffic.
Trait Implementations
impl Clone for MdnsConfig
impl Clone for MdnsConfigpub fn clone(&self) -> MdnsConfig
pub fn clone(&self) -> MdnsConfigReturns a copy of the value. Read more
Performs copy-assignment from source. Read more
impl Debug for MdnsConfig
impl Debug for MdnsConfigimpl Default for MdnsConfig
impl Default for MdnsConfigpub fn default() -> MdnsConfig
pub fn default() -> MdnsConfigReturns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for MdnsConfigimpl Send for MdnsConfigimpl Sync for MdnsConfigimpl Unpin for MdnsConfigimpl UnwindSafe for MdnsConfigBlanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::MetadataConverts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>Deserializes using the given deserializer
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V