Docs.rs
snarkos-node-router-4.4.0
snarkos-node-router 4.4.0
Docs.rs crate page
Apache-2.0
Links
Homepage
Repository
crates.io
Source
Owners
howardwu
Dependencies
aleo-std ^1.0.1
normal
anyhow ^1.0
normal
async-trait ^0.1
normal
colored ^3
normal
futures ^0.3.30
normal
linked-hash-map ^0.5
normal
locktick ^0.4
normal
optional
parking_lot ^0.12
normal
rand ^0.8
normal
rayon ^1
normal
snarkos-account =4.4.0
normal
snarkos-node-bft-ledger-service =4.4.0
normal
snarkos-node-metrics =4.4.0
normal
optional
snarkos-node-network =4.4.0
normal
snarkos-node-router-messages =4.4.0
normal
snarkos-node-sync-communication-service =4.4.0
normal
snarkos-node-sync-locators =4.4.0
normal
snarkos-node-tcp =4.4.0
normal
snarkvm =4.4.0
normal
time ^0.3
normal
tokio ^1.48
normal
tokio-stream =0.1
normal
tokio-util ^0.7
normal
tracing ^0.1
normal
deadline ^0.2
dev
futures-util ^0.3
dev
peak_alloc ^0.2
dev
snarkos-node-bft-ledger-service =4.4.0
dev
snarkos-node-router-messages =4.4.0
dev
snarkvm =4.4.0
dev
tracing-subscriber =0.3.19
dev
Versions
85.29%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Crate snarkos_node_router
snarkos_
node_
router
4.4.0
All Items
Crate Items
Re-exports
Macros
Structs
Constants
Traits
Functions
Crate
snarkos_
node_
router
Copy item path
Source
Re-exports
§
pub use
snarkos_node_router_messages
as messages;
Macros
§
expect_
message
A macro unwrapping the expected handshake message or returning an error for unexpected messages.
Structs
§
Cache
Inner
Router
Router
The router keeps track of connected and connecting peers. The actual network communication happens in Inbound/Outbound, which is implemented by Validator, Prover, and Client.
Constants
§
DEFAULT_
NODE_
PORT
The default port used by the router.
MAX_
PEERS_
TO_
SEND
The max number of peers to send in a
PeerResponse
message.
Traits
§
Heartbeat
Inbound
Outbound
Routing
Functions
§
max
A helper function to compute the maximum of two numbers. See Rust issue 92391: https://github.com/rust-lang/rust/issues/92391.