Expand description
The address book updater: an actor-style task that owns the address book
write path, wrapped in a [tower::buffer::Buffer] service handle.
Structs§
- Address
Book Call - A queued call to the address book updater task.
- Address
Book Change Sender - A cheap cloneable handle that sends fire-and-forget
MetaAddrChangeevents to the address book updater task. - Address
Book 🔒Handler - Serves
AddressBookRequests directly from the address book it holds. - Address
Book Updater - The
AddressBookUpdaterhooks into incoming message streams for each peer and lets the owner of the sender handle update the address book. For example, it can be used to record per-connection last-seen timestamps, or add new initial peers to the address book. - AllAddress
Book Updater Senders Closed
Enums§
- Address
Book Request - A request to the address book updater task.
- Address
Book Response - A response from the address book updater task.
Constants§
- MIN_
CHANNEL_ SIZE - The minimum size of the address book updater channel.
Functions§
- change_
channel - Creates an
AddressBookChangeSenderand the receiving half of its channel, without spawning an updater task.
Type Aliases§
- Address
Book Service - A shared [
Buffer]-wrapped service handle to the address book.