Update documentation

This commit is contained in:
Alex 2020-12-14 11:41:25 +01:00
parent 5d07711900
commit 9e38b82edc
2 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,7 @@
//! - peer discovery
//! - query/response message passing model for communications
//! - multiplexing transfers over a connection
//! - overlay networks: full mesh or random peer sampling using Basalt
//! - overlay networks: full mesh, and soon other methods
//!
//! Of particular interest, read the documentation for the `netapp::NetApp` type,
//! the `message::Message` trait, and `proto::RequestPriority` to learn more

View File

@ -158,6 +158,8 @@ impl NetApp {
/// Add a handler for a certain message type. Note that only one handler
/// can be specified for each message type.
/// The handler is an asynchronous function, i.e. a function that returns
/// a future.
pub fn add_msg_handler<M, F, R>(&self, handler: F)
where
M: Message + 'static,