Re-exports§
pub use anyhow;pub use bincode;pub use serde;pub use tokio;pub use rpc_packet::*;pub use rpc_network::*;pub use protocol_id::*;pub use protocol_registry::*;pub use multi_protocol::*;
Modules§
Macros§
- paste
- protocol
- protocol_
handler - Macro to create a multi-protocol receiver wrapper This generates a type that impl ReceiveRpcProtocol and dispatches to the right protocol
- protocol_
sender - Macro to create a multi-protocol sender This generates a sender type that implements all the necessary traits for multiple protocols
- registry
- Macro for ergonomic protocol registration Usage: registry! { fs_protocol => FsHandler::new(), db_protocol => DbHandler::new(), }
- registry_
for - Register a single handler that implements multiple protocols Usage: registry_for!(handler, [fs_protocol, db_protocol, metrics_protocol])
Structs§
Enums§
Traits§
- Deserialize
- A data structure that can be deserialized from any data format supported by Serde.
- Deserialize
Owned - A data structure that can be deserialized without borrowing any data from the deserializer.
- Serialize
- A data structure that can be serialized into any data format supported by Serde.