Skip to main content

Crate orpc

Crate orpc 

Source

Re-exports§

pub use builder::Builder;
pub use builder::BuilderWithIO;
pub use builder::BuilderWithInput;
pub use builder::os;
pub use context::Context;
pub use contract::ContractBuilder;
pub use contract::ContractBuilderWithOutput;
pub use contract::ContractProcedure;
pub use contract::ErasedContract;
pub use contract::oc;
pub use error::ErrorCode;
pub use error::ORPCError;
pub use file::ORPCFile;
pub use handler::BoxFuture;
pub use handler::Handler;
pub use implement::ContractImplementer;
pub use implement::ContractImplementerWithMw;
pub use implement::implement;
pub use middleware::MiddlewareCtx;
pub use middleware::MiddlewareOutput;
pub use middleware::ProcedureMeta;
pub use middleware::middleware_fn;
pub use procedure::Procedure;
pub use router::Router;
pub use schema::Identity;
pub use schema::Schema;

Modules§

builder
context
contract
error
file
handler
implement
middleware
procedure
router
schema

Macros§

router
Declarative macro for building routers with optional nesting.

Structs§

DynOutput
Type-erased output — wraps a serializable value.
ErasedProcedure
Fully type-erased procedure. Only TCtx (= TBaseCtx) remains as generic.
ErrorMap
Error map stub, reserved for future schema-based error handling.
Meta
Extensible procedure metadata, reserved for future extensions.
ProcedureStream
Type-erased async stream of procedure results.
Route
HTTP route metadata for a procedure.
State
Type-safe heterogeneous state container.

Enums§

DynInput
Type-erased input — wraps raw data that can be deserialized on demand.
HttpMethod
HTTP method for route matching.
ProcedureError
Universal error type for the type-erased execution layer.

Traits§

ErasedSchema
Type-erased schema interface for procedure input/output.

Attribute Macros§

orpc_service
Define an oRPC service from a trait.