Skip to main content

Module address_book_updater

Module address_book_updater 

Source
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§

AddressBookCall
A queued call to the address book updater task.
AddressBookChangeSender
A cheap cloneable handle that sends fire-and-forget MetaAddrChange events to the address book updater task.
AddressBookHandler 🔒
Serves AddressBookRequests directly from the address book it holds.
AddressBookUpdater
The AddressBookUpdater hooks 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.
AllAddressBookUpdaterSendersClosed

Enums§

AddressBookRequest
A request to the address book updater task.
AddressBookResponse
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 AddressBookChangeSender and the receiving half of its channel, without spawning an updater task.

Type Aliases§

AddressBookService
A shared [Buffer]-wrapped service handle to the address book.