dbrowser · state
Source declarations, signatures and documentation for state.
Source: sigil/weave/tools/dbrowser/src-tauri/src/state.rs. SHA-256: e99fc771a3e28993bfab14d0f5e974c8cabdb0c7bb5a931cf4b0e5ec454d57b1.
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.
state::AppState
Shared application state registered as Tauri managed state.
pub struct AppState {
/// The Weave P2P node providing identity, storage, and networking.
pub node: Arc<WeaveNode>
}Source line: 7.
state::AppState::new
Create a new AppState by building a WeaveNode.
The node stores its data in ~/.dbrowser, uses the "l1fe" OAS namespace,
and enables mDNS for local peer discovery.
pub async fn new() -> Result<Self, WeaveError>;Source line: 17.