Crate tor_rpcbase

source ·
Expand description

tor-rpcbase

Backend for Arti’s RPC service

License: MIT OR Apache-2.0

Re-exports

Modules

  • A multiple-argument dispatch system for our RPC system.

Macros

  • Declare that one or more space-separated types should be considered as RPC methods.
  • Declare that one or more space-separated types should be considered as RPC objects.
  • Implement [HasConstTypeId_] for one or more types.
  • Declare an RPC function that will be used to call a single type of Method on a single type of Object.

Structs

  • A serializable empty object.
  • An identifier for an Object within the context of a Session.
  • An error type returned by failing RPC methods.

Enums

Traits

  • A trait describing the context in which an RPC method is executed.
  • Extension trait for Context.
  • The parameters and method name associated with a given Request.
  • A typed method, used to ensure that all implementations of a method have the same success and updates types.
  • An object in our RPC system to which methods can be addressed.
  • Extension trait for dyn Object and similar to support convenient downcasting to dyn Trait.

Functions