Weave documentation
Rust referencel1fe-weave-core

l1fe-weave-core · network

Source declarations, signatures and documentation for network.

Reviewed implementation boundary: Some core wrappers derive transport keys from DID strings. Do not infer secret key custody or authenticated peers from a supplied DID string; inspect the chosen wrapper and transport configuration. See /libraries/weave-core/overview.

Source: sigil/weave/libs/weave-core/src/network/mod.rs. SHA-256: 71ff1b9b5189471116b8c9a37c1ed2697520b25a02a8cab7522be5f292db2fa6.

This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.

pub use dht::{Dht, DhtConfig, DhtStats};

#[cfg(feature = "p2p")]
pub use dht::{Dht, DhtConfig, DhtStats};

Source line: 19.

pub use protocol::{ProtocolMessage, WeaveProtocol};

#[cfg(feature = "p2p")]
pub use protocol::{ProtocolMessage, WeaveProtocol};

Source line: 21.

pub use swarm::{Peer, Swarm, SwarmConfig};

#[cfg(feature = "p2p")]
pub use swarm::{Peer, Swarm, SwarmConfig};

Source line: 23.

network::init

Initialize the network subsystem

pub async fn init() -> Result<()>;

Source line: 28.

On this page