docs: keep public API rustdoc clean

This commit is contained in:
DeFiDude committed 2026-07-26 06:55:49 -06:00
1 parent 115c9dd17c
commit e38bab9d16
3 files changed
+9 -9

No files matched your search

+4 -3
View File
@@ -218,7 +218,7 @@ pub fn pn_stamp_cost_from_app_data(data: &[u8]) -> Option<u8> {
/// Encode delivery-announce `app_data` as msgpack
/// `[display_name, stamp_cost, supported_functionality]` where the feature
/// list advertises [`SF_COMPRESSION`](crate::constants::SF_COMPRESSION).
/// list advertises [`SF_COMPRESSION`].
///
/// `stamp_cost` must be in `1..=254`; out-of-range or `None` values are encoded as nil.
///
@@ -465,8 +465,9 @@ impl PropagationRequestHandler {
}
/// Handle a `/get` request from a client downloading messages. Phase-2
/// responses come back as a [`GetRequestAction::ServeFiles`] plan — the
/// embedder resolves it after releasing the node lock.
/// responses come back as a
/// [`GetRequestAction::ServeFiles`](crate::propagation_node::GetRequestAction::ServeFiles)
/// plan — the embedder resolves it after releasing the node lock.
///
/// Python reference: `LXMRouter.message_get_request` — LXMRouter.py:1425-1499.
pub fn handle_message_get_request(
+4 -5
View File
@@ -266,11 +266,10 @@ pub struct LxmRouter {
pub pending_outbound: Vec<LxMessage>,
/// Messages awaiting deferred stamp generation, keyed by message hash.
pub pending_deferred_stamps: HashMap<[u8; 32], LxMessage>,
/// Captured at construction (or via [`set_runtime_handle`](Self::set_runtime_handle))
/// so deferred-stamp PoW can spawn onto the blocking pool even when the
/// caller is itself on a `spawn_blocking` thread, where
/// `Handle::try_current()` fails. Without it the tick grinds stamps
/// inline while holding the manager lock (observed 53 s stall).
/// Captured at construction so deferred-stamp PoW can spawn onto the
/// blocking pool even when the caller is itself on a `spawn_blocking`
/// thread, where `Handle::try_current()` fails. Without it the tick grinds
/// stamps inline while holding the manager lock (observed 53 s stall).
pub runtime_handle: Option<tokio::runtime::Handle>,
pub active_deferred_stamp: Option<DeferredStampJob>,
/// Identities allowed for delivery. An empty list means "all allowed".
+1 -1
View File
@@ -94,7 +94,7 @@ pub struct Args {
#[arg(long, value_name = "PATH")]
pub identity: Option<PathBuf>,
/// Send a single message and exit: --send <dest_hash> <content>
/// Send a single message and exit: `--send <dest_hash> <content>`.
#[arg(long, num_args = 1..=2, value_names = ["DEST_HASH", "CONTENT"])]
pub send: Option<Vec<String>>,