Expand description
Transfer a backup to an other device.
This module provides support for using n0’s iroh tool to initiate transfer of a backup to another device using a QR code.
Using the iroh terminology there are two parties to this:
- The Provider, which starts a server and listens for connections.
- The Getter, which connects to the server and retrieves the data.
Iroh is designed around the idea of verifying hashes, the downloads are verified as they are retrieved. The entire transfer is initiated by requesting the data of a single root hash.
Both the provider and the getter are authenticated:
- The provider is known by its peer ID.
- The provider needs an authentication token from the getter before it accepts a connection.
Both these are transferred in the QR code offered to the getter. This ensures that the getter can not connect to an impersonated provider and the provider does not offer the download to an impersonated getter.
Structs§
- Provide or send a backup of this device.
- A guard which will remove the path when dropped.
Enums§
- Create
EventType::ImexProgress
events using readable names. - Create
EventType::ImexProgress
events using readable names.
Constants§
Functions§
- Contacts a backup provider and receives the backup from it.
- on_blob 🔒Get callback when a blob is received from the provider.
- Spawns a task proxying progress events.