summaryrefslogtreecommitdiff
path: root/crates/tor-rpcbase/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* rpc: Remove downgrade_owned for nowNick Mathewson2023-05-241-8/+0
| | | | | | | Rationale: Our weak-vs-strong design is a bit confused at the moment due to concerns about deduplication and capability semantics. It's not clear that a general "change strong to weak" method is compatible with what we want to provide.
* rpc: Implement functionality to remove objects from a sessionNick Mathewson2023-05-241-0/+25
| | | | | | | | | | | I've made doing some design choices here: * Reserving "rpc" as a prefix for post-authentication functionality that is not arti-specific. * Declaring these to be methods on the session rather than methods on the objects themselves. There's a problem with defining an API to drop a weak reference; see comment in code.
* rpc: fix documentation for methods in Context.Nick Mathewson2023-05-241-6/+4
|
* RPC: Add "register" methods to RequestContext.Nick Mathewson2023-05-041-0/+23
|
* rpc: Simplify and clarify SendUpdateError.Nick Mathewson2023-04-191-7/+13
|
* Arti: Add ability to remember the list of methods names.Nick Mathewson2023-04-191-2/+3
| | | | | | | | | | | | Right now, this lets us say whether the method was unrecognized or whether the parameter type was incorrect. We'll use this to enforce correct method names later on. (I have to add another `inventory` here, since the `typetag` maintainer does not want to expose this functionality: see https://github.com/dtolnay/typetag/issues/57#issuecomment-1506106290 )
* rpcbase: Use with_fn.Nick Mathewson2023-04-191-1/+3
|
* rpc: Split Method into DynMethod and MethodNick Mathewson2023-04-191-1/+1
| | | | | Now `Method` has an Output and Update associated type, and `decl_method` can do a little more.
* rpc: Move update sink out of context.Nick Mathewson2023-04-161-8/+13
| | | | | Now the update sink is its own boxed object. It is not yet passed to the invoke functions that want it.
* tor-rpcbase: Rename cmd.rs to method.rs.Nick Mathewson2023-04-121-2/+2
|
* tor-rpcbase: Rename and rephrase "command" to "method"Nick Mathewson2023-04-121-4/+4
|
* Rename tor-rpccmd to tor-rpcbase.Nick Mathewson2023-04-121-0/+113