Crate tor_rpcbase
source ·Expand description
Re-exports
pub use dispatch::DispatchTable;
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.
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
- An error returned from
ContextExt::lookup. - An uninhabited type, used to indicate that a given method will never send updates.
- An error caused while trying to send an update to a method.
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 Objectand similar to support convenient downcasting todyn Trait.
Functions
- Return true if
nameis the name of some method. - Return an iterator that yields every registered method name.