[][src]Crate ckb_network

TODO(doc): @driftluo

Re-exports

pub use crate::errors::Error;
pub use crate::network::DefaultExitHandler;
pub use crate::network::ExitHandler;
pub use crate::network::NetworkController;
pub use crate::network::NetworkService;
pub use crate::network::NetworkState;
pub use crate::peer_registry::PeerRegistry;
pub use crate::peer_store::types::MultiaddrExt;
pub use crate::peer_store::Score;
pub use p2p::bytes;
pub use p2p::multiaddr;
pub use tokio;

Modules

errors

TODO(doc): @driftluo

network

TODO(doc): @driftluo

peer_registry

TODO(doc): @driftluo

peer_store

TODO(doc): @driftluo

Structs

BlockingFlag

Control whether the protocol handle method requires blocking to run default is 0b1111, all function use blocking

CKBProtocol

TODO(doc): @driftluo

Peer

TODO(doc): @driftluo

PeerId

Identifier of a peer of the network

PeerIdentifyInfo

TODO(doc): @driftluo

ProtocolId

Protocol id

ServiceControl

Service control, used to send commands externally at runtime

Enums

Behaviour

Peers behaviours we maintain a score to each peer report peer bahaviour will affects peer's score

PublicKey

Public Key

SessionType

Indicates the session type

SupportProtocols

TODO(doc): @driftluo

TargetSession

When sending a message, select the specified session

Traits

CKBProtocolContext

TODO(doc): @driftluo

CKBProtocolHandler

TODO(doc): @driftluo

ServiceProtocol

Service level protocol handle

Type Definitions

PeerIndex

TODO(doc): @driftluo

ProtocolVersion

TODO(doc): @driftluo