Struct ipfs_embed::NetworkConfig [−][src]
pub struct NetworkConfig {Show fields
pub enable_loopback: bool,
pub node_name: String,
pub node_key: Keypair,
pub psk: Option<[u8; 32]>,
pub quic: TransportConfig,
pub dns: Option<DnsConfig>,
pub mdns: Option<MdnsConfig>,
pub kad: Option<KadConfig>,
pub ping: Option<PingConfig>,
pub identify: Option<IdentifyConfig>,
pub gossipsub: Option<GossipsubConfig>,
pub broadcast: Option<BroadcastConfig>,
pub bitswap: Option<BitswapConfig>,
pub streams: Option<StreamSyncConfig>,
}Expand description
Network configuration.
Fields
enable_loopback: boolEnable adding loopback addresses to the address book. Should be enabled during testing and disabled in production.
node_name: StringNode name.
node_key: KeypairNode key.
psk: Option<[u8; 32]>Pre shared key.
quic: TransportConfigQuic config.
dns: Option<DnsConfig>Dns config. If no dns config is provided the system defaults will be used.
mdns: Option<MdnsConfig>Mdns config.
kad: Option<KadConfig>Kad config.
ping: Option<PingConfig>Ping config.
identify: Option<IdentifyConfig>Identify config. Note that the node_name and
node_key will overwrite the local_public_key and
the agent_version.
gossipsub: Option<GossipsubConfig>Gossipsub config.
broadcast: Option<BroadcastConfig>Broadcast config.
bitswap: Option<BitswapConfig>Bitswap config.
streams: Option<StreamSyncConfig>Streams config.
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for NetworkConfigimpl Send for NetworkConfigimpl Sync for NetworkConfigimpl Unpin for NetworkConfigimpl !UnwindSafe for NetworkConfigBlanket 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