Module forest_filecoin::rpc
source ยท Re-exportsยง
pub use client::Client;
pub use error::ServerError;
pub use reflect::ApiPath;
pub use reflect::ApiPaths;
pub use reflect::RpcMethod;
pub use reflect::RpcMethodExt;
pub use request::Request;
pub use crate::rpc::channel::CANCEL_METHOD_NAME;
pub use methods::*;
Modulesยง
- auth_layer ๐
- channel ๐Subscription related types and traits for server implementations.
- client ๐Design Goals
- error ๐
- log_layer ๐Middleware layer for logging RPC calls.
- methods ๐All the methods live in their own folder
- metrics_layer ๐
- All handler definitions.
- reflect ๐Forest wishes to provide OpenRPC definitions for Filecoin APIs. To do this, it needs:
- request ๐
- Types that are shared between APIs.
Macrosยง
- for_each_method ๐The macro
callback
will be passed in each type that implementsRpcMethod
.
Structsยง
- PerConnection ๐
- This is where you store persistent data, or at least access to stateful data.
Enumsยง
- Protocol or transport-specific error Error type.
Constantsยง
Staticsยง
- Request timeout read from environment variables
Functionsยง
- create_module ๐
- If
include
is notNone
, only methods that are listed will be returned