<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-events, branch arti-v0.0.2</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v0.0.2</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v0.0.2'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2021-11-30T14:12:51Z</updated>
<entry>
<title>Merge branch 'readme_fixes'</title>
<updated>2021-11-30T14:12:51Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-11-30T14:12:51Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3b072c542064002f71d2a6a6a9fc22a83dbe5962'/>
<id>urn:sha1:3b072c542064002f71d2a6a6a9fc22a83dbe5962</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bump every crate by one patch version.</title>
<updated>2021-11-29T20:21:58Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-11-29T20:21:58Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=eef81d9d570572b7a57a76de4003721c546856de'/>
<id>urn:sha1:eef81d9d570572b7a57a76de4003721c546856de</id>
<content type='text'>
</content>
</entry>
<entry>
<title>run ./maint/readmes.sh</title>
<updated>2021-11-29T11:29:28Z</updated>
<author>
<name>dagon</name>
<email>dagon12@tutanota.com</email>
</author>
<published>2021-11-29T11:29:28Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d5c48c616fd40313f0428d14bae97419ae3dac95'/>
<id>urn:sha1:d5c48c616fd40313f0428d14bae97419ae3dac95</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add semicolons if nothing returned</title>
<updated>2021-11-25T13:20:37Z</updated>
<author>
<name>Daniel Eades</name>
<email>danieleades@hotmail.com</email>
</author>
<published>2021-11-25T13:14:05Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=db16d13df4779ac61005050dfe5ce05e3d5a1b5d'/>
<id>urn:sha1:db16d13df4779ac61005050dfe5ce05e3d5a1b5d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove a couple more eprintln! calls.</title>
<updated>2021-11-23T22:40:13Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-11-23T22:40:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=54de7f5cfd82eb04e1e119d1734eee2d6ee1176d'/>
<id>urn:sha1:54de7f5cfd82eb04e1e119d1734eee2d6ee1176d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add and resolve clippy warnings in tor-events.</title>
<updated>2021-11-22T16:49:31Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-11-22T16:49:31Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=94790016495c61e2913d645fde51274e963437b1'/>
<id>urn:sha1:94790016495c61e2913d645fde51274e963437b1</id>
<content type='text'>
Here we add the same array of clippy warnings as usual to the new
tor-event crate, and resolve the issues that triggered any of them.
</content>
</entry>
<entry>
<title>Initial cut at a typed event framework for arti (arti#230).</title>
<updated>2021-11-22T14:39:38Z</updated>
<author>
<name>eta</name>
<email>tor@eta.st</email>
</author>
<published>2021-11-16T15:21:47Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=98f38dc186212624d377653ed8ecf3c47366c3ad'/>
<id>urn:sha1:98f38dc186212624d377653ed8ecf3c47366c3ad</id>
<content type='text'>
This implements a basic typed event broadcast mechanism, as described in
arti#230: consumers of the new `tor-events` crate can emit `TorEvent`
events, which others can consume via the `TorEventReceiver`.

Under the hood, the crate uses the `async-broadcast`
(https://github.com/smol-rs/async-broadcast) crate, and a
`futures::mpsc::UnboundedSender` for the event emitters; these are glued
together in the `EventReactor`, which must be run in a background thread
for things to work. (This is done so event sending is always cheap and
non-blocking, since `async-broadcast` senders don't have this
functionality.)

Additionally, the `TorEventKind` type is used to implement selective
event reception / emission: receivers can subscribe to certain event
types (and in fact start out receiving nothing), which filters the set
of events they receive. Having no subscribers for a given event type
means it won't even be emitted in the first place, making things more
efficient.
</content>
</entry>
</feed>
