Expand description
Download methods
Macrosยง
- seeders_
loop ๐ - Receive seeders from a subscription, and execute an async expression for
each deduplicated seeder once (seeder order is random).
It will keep going until the expression returns
Ok(())
, or there are no more seeders. It has an optionalfavored_seeder
argument that will be tried first if specified.
Structsยง
- Chunk
Fetch ๐Context
Enumsยง
- Chunk
Fetch ๐Control - Metadata
Fetch ๐Reply
Functionsยง
- fetch_
chunk ๐ - Fetch a single chunk and return what should be done next
- fetch_
chunks - Fetch
chunks
forchunked
(file or directory) from seeders inseeders_sub
. - fetch_
metadata - Fetch a single resource metadata from seeders received from
seeders_sub
. If the resource is a file smaller than a single chunk then seeder can send the chunk directly, and we will create the file from it on pathpath
. - handle_
chunk_ ๐reply - Processes an incoming chunk