Re-exports§
pub use crate::service::message::Message;pub use crate::service::message::ZeroBytes;pub use crate::service::session::QueuedFetch;pub use crate::service::session::Session;pub use message::ADDRESS_LIMIT;pub use message::INVENTORY_LIMIT;pub use message::REF_REMOTE_LIMIT;
Modules§
Structs§
- Fetch
State - Fetch state for an ongoing fetch.
- Lookup
- Result of a project lookup.
- Metrics
- Metrics we track.
- Peer
Metrics - Per-peer metrics we track.
- Service
- The node service.
- Sessions
- Holds currently (or recently) connected peers.
- Stores
- Holds all node stores.
Enums§
- Command
- Commands sent to the service by the operator.
- Command
Error - Command-related errors.
- Connect
Error - Disconnect
Reason - Disconnect reason.
- Error
- General service error.
- Lookup
Error
Constants§
- ANNOUNCE_
INTERVAL - How often to run the “announce” task.
- CONNECTION_
RETRY_ DELTA - Connection retry delta used for ephemeral peers that failed to connect previously.
- FETCH_
TIMEOUT - How long to wait for a fetch to stall before aborting, default is 3s.
- GOSSIP_
INTERVAL - How often to run the “gossip” task.
- IDLE_
INTERVAL - How often to run the “idle” task.
- INITIAL_
SUBSCRIBE_ BACKLOG_ DELTA - How far back from the present time should we request gossip messages when connecting to a peer, when we come online for the first time.
- KEEP_
ALIVE_ DELTA - How much time should pass after a peer was last active for a ping to be sent.
- MAX_
CONNECTION_ ATTEMPTS - Maximum attempts to connect to a peer before we give up.
- MAX_
LATENCIES - Maximum number of latency values to keep for a session.
- MAX_
RECONNECTION_ DELTA - Maximum amount of time to wait before reconnecting to a peer.
- MAX_
TIME_ DELTA - Maximum time difference between the local time, and an announcement timestamp.
- MIN_
RECONNECTION_ DELTA - Minimum amount of time to wait before reconnecting to a peer.
- PRUNE_
INTERVAL - How often to run the “prune” task.
- STALE_
CONNECTION_ TIMEOUT - Duration to wait on an unresponsive peer before dropping its connection.
- SUBSCRIBE_
BACKLOG_ DELTA - When subscribing, what margin of error do we give ourselves. A igher delta means we ask for messages further back than strictly necessary, to account for missed messages.
- SYNC_
INTERVAL - How often to run the “sync” task.
- TARGET_
OUTBOUND_ PEERS - Target number of peers to maintain connections to.
Traits§
- Service
State - Gives read access to the service state.
- Store
- A store for all node data.
Type Aliases§
- Query
State - Function used to query internal service state.