Weave documentation
Rust referencedbrowser

dbrowser · protocol

Source declarations, signatures and documentation for protocol.

Source: sigil/weave/tools/dbrowser/src-tauri/src/protocol.rs. SHA-256: 276e4b30b038cc1a6c4d572fda91d1f74d50dfa6e21542b5627e96c3c2487cec.

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 engine_protocol::{parse_weave_url, WeaveUrl};

pub use engine_protocol::{parse_weave_url, WeaveUrl};

Source line: 13.

protocol::ProtocolError

#[derive(Debug, thiserror::Error)]
pub enum ProtocolError {
    #[error("browser engine error: {0}")]
    Engine(#[from] weave_browser_engine::error::BrowserError),
}

Source line: 18.

protocol::resolve_weave_url

Resolve a weave:// URL and return the response body.

Uses the shared [engine_protocol::WeaveResolver] backed by the application's WeaveNode.

pub async fn resolve_weave_url(node: &Arc<WeaveNode>, url: &str) -> Result<Vec<u8>, ProtocolError>;

Source line: 29.

protocol::resolve_hns_url

Resolve an hns:// URL via Handshake decentralised DNS.

pub async fn resolve_hns_url(url: &str) -> Result<String, ProtocolError>;

Source line: 37.

On this page