Expand description
An object mapper for looking up rpc::Objects by ID.
This mapper stores strong or weak references, and uses a generational index to keep track of names for them.
TODO RPC: Add an object diagram here once the implementation settles down.
Re-exportsยง
use std::sync::Arc;๐use std::sync::Weak;๐use rand::RngExt;๐use slotmap_careful::Key as _;๐use slotmap_careful::KeyData;๐use slotmap_careful::SlotMap;๐use tor_rpcbase as rpc;๐
Modulesยง
- methods ๐
- Implementations for rpc methods that interact with object IDs directly.
Structsยง
Enumsยง
- Lookup
Error ๐ - A failure from ObjMap::lookup.
- Object
Ref ๐ - A weak or a strong reference to an RPC object.