<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-rpcbase/src/dispatch.rs, branch arti-v1.1.4</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.4</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.4'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-04-19T16:38:26Z</updated>
<entry>
<title>rpc: New syntax for method declaration</title>
<updated>2023-04-19T16:38:26Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-04-18T21:37:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e6092e99ea356664be8286d17b8e2526576fa6ee'/>
<id>urn:sha1:e6092e99ea356664be8286d17b8e2526576fa6ee</id>
<content type='text'>
Now you just declare your function `my_func` with the right types,
and invoke `rpc_invoke_fn!{ my_func(ObjType, MethodType); }`
</content>
</entry>
<entry>
<title>rpcbase: Use with_fn.</title>
<updated>2023-04-19T16:38:26Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-04-18T19:52:14Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6f6a4d073e1f92758264f99e290968e7853ba0cd'/>
<id>urn:sha1:6f6a4d073e1f92758264f99e290968e7853ba0cd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rpc: Minor tweaks to get a sink to compile.</title>
<updated>2023-04-19T16:38:26Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-04-18T18:06:29Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=80a13ff898b5abd9002e56bdc388968f0006aa81'/>
<id>urn:sha1:80a13ff898b5abd9002e56bdc388968f0006aa81</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rpc: Use Method types to determine type of method outputs, updates.</title>
<updated>2023-04-19T16:38:26Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-04-18T17:53:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0503f7bd4bd420df0b06cf9ccdd0b800646108bd'/>
<id>urn:sha1:0503f7bd4bd420df0b06cf9ccdd0b800646108bd</id>
<content type='text'>
This lets us do much less in our rpc_invoke_fn functions.
</content>
</entry>
<entry>
<title>rpc: Split Method into DynMethod and Method</title>
<updated>2023-04-19T16:38:26Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-04-18T17:04:28Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7dcfb02c2201c29cb3237f5921a4130e6fcd567a'/>
<id>urn:sha1:7dcfb02c2201c29cb3237f5921a4130e6fcd567a</id>
<content type='text'>
Now `Method` has an Output and Update associated type, and
`decl_method` can do a little more.
</content>
</entry>
<entry>
<title>rpc: simplify API by always providing a sink.</title>
<updated>2023-04-16T12:46:42Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-04-14T16:35:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5a2c38a1347d0508c59b81ec34732c1ed8fefddd'/>
<id>urn:sha1:5a2c38a1347d0508c59b81ec34732c1ed8fefddd</id>
<content type='text'>
Previously we have two places where we had to do "make a `Drain` sink
if updates aren't wanted"; now there's only one.
</content>
</entry>
<entry>
<title>rpc: Wire updates into rpc invoke functions again.</title>
<updated>2023-04-16T12:46:42Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-04-14T13:15:47Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=58ad91cbf56c95735e17286714960749750647dd'/>
<id>urn:sha1:58ad91cbf56c95735e17286714960749750647dd</id>
<content type='text'>
Now that the sink is not part of the context, RPC functions that are
able to send an update have to declare an `impl Sink` as their
fourth argument.  This syntax is not final.

Part of #824.
</content>
</entry>
<entry>
<title>rpc: Move update sink out of context.</title>
<updated>2023-04-16T12:46:41Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-04-13T18:14:17Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3b9fc607637e80bc16876355fbdfa674ce8907f7'/>
<id>urn:sha1:3b9fc607637e80bc16876355fbdfa674ce8907f7</id>
<content type='text'>
Now the update sink is its own boxed object.  It is not yet passed
to the invoke functions that want it.
</content>
</entry>
<entry>
<title>tor-rpcbase: rename cmd to method everywhere.</title>
<updated>2023-04-12T15:45:30Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-04-12T15:45:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=193253a15858cb8f6f4337bf99fa760a416df4f8'/>
<id>urn:sha1:193253a15858cb8f6f4337bf99fa760a416df4f8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-rpcbase: Rename and rephrase "command" to "method"</title>
<updated>2023-04-12T15:25:03Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-04-12T15:23:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c5b70224b25c42ed8152527e0308bbbbde2b5624'/>
<id>urn:sha1:c5b70224b25c42ed8152527e0308bbbbde2b5624</id>
<content type='text'>
</content>
</entry>
</feed>
