Struct ipfs_embed::NetworkConfig [−][src]
pub struct NetworkConfig {
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>,
}Expand description
Network configuration.
Fields
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.
Implementations
impl NetworkConfig[src]
impl NetworkConfig[src]Trait Implementations
impl Debug for NetworkConfig[src]
impl Debug for NetworkConfig[src]Auto Trait Implementations
impl !RefUnwindSafe for NetworkConfig
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl !UnwindSafe for NetworkConfig
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,