weave-dht · enhanced
Source declarations, signatures and documentation for enhanced.
Source: sigil/weave/network/weave-dht/src/enhanced.rs. SHA-256: ebe8383fd7e95556cf4f04ea863734fbfa5f0bafd7ee5362129c85a48c7de2e8.
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.
enhanced::EnhancedDhtNode
Enhanced DHT node with Weave compatibility
pub struct EnhancedDhtNode {
}Source line: 21.
enhanced::EnhancedDhtNode::new
Create enhanced DHT node
pub fn new(
dht_handle: DhtHandle,
peer_id: PeerId,
listen_port: u16,
weave_config: WeaveDhtConfig,
relay_config: LocalRelayConfig,
) -> Self;Source line: 40.
enhanced::EnhancedDhtNode::bootstrap_weave
Bootstrap from Weave network
pub async fn bootstrap_weave(&mut self, nodes: Vec<String>) -> Result<()>;Source line: 371.
enhanced::EnhancedDhtNode::handle_relay_request
Handle relay request
pub async fn handle_relay_request(
&self,
from: PeerId,
to: PeerId,
token: [u8; 32],
) -> Result<SessionId>;Source line: 397.
enhanced::EnhancedDhtNode::relay_data
Relay data
pub async fn relay_data(
&self,
session_id: SessionId,
data: &[u8],
from_peer: PeerId,
) -> Result<()>;Source line: 407.
enhanced::EnhancedDhtNode::close_relay_session
Close relay session
pub fn close_relay_session(&self, session_id: SessionId);Source line: 417.
enhanced::PeerInfo::from_libp2p
pub fn from_libp2p(peer_id: PeerId, addrs: Vec<Multiaddr>) -> Result<Self>;Source line: 424.
enhanced::PeerInfo::to_libp2p
pub fn to_libp2p(&self) -> Result<(PeerId, Vec<Multiaddr>)>;Source line: 455.