pub fn implement<TBaseCtx: Context, TInput, TOutput, TError>(
contract: ContractProcedure<TInput, TOutput, TError>,
) -> ContractImplementer<TBaseCtx, TInput, TOutput, TError>Expand description
Create a ContractImplementer from a contract, bound to a specific base context type.
The returned implementer constrains the handler’s input/output types to match the contract.
ⓘ
let proc = implement::<AppCtx, _, _, _>(contract)
.handler(get_user_handler);
// Compiler enforces: handler must be Fn(AppCtx, GetUserInput) -> Result<User, ORPCError>