Weave documentation
Rust referencedbrowser

dbrowser · commands::node

Source declarations, signatures and documentation for commands::node.

Source: sigil/weave/tools/dbrowser/src-tauri/src/commands/node.rs. SHA-256: e07f1a9a991f70047188ade9930d1fa60d4e268277c5b6d13487178037e1dfa7.

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.

commands::node::NodeStatus

Current status of the Weave node.

#[derive(Debug, Serialize)]
pub struct NodeStatus {
/// The node's DID (decentralized identifier).

pub did: String,
/// Number of connected peers.

pub peer_count: usize,
/// Names of currently open Locus drives.

pub drives: Vec<String>
}

Source line: 10.

commands::node::get_status

Get the current status of the Weave node.

#[tauri::command]
pub async fn get_status(state: State<'_, AppState>) -> Result<NodeStatus, String>;

Source line: 21.

commands::node::get_peers

Get a list of currently connected peer DIDs or addresses.

#[tauri::command]
pub async fn get_peers(state: State<'_, AppState>) -> Result<Vec<String>, String>;

Source line: 51.

On this page