Skip to main content

Crate takanawa_core

Crate takanawa_core 

Source
Expand description

Core resumable download primitives shared by the Takanawa front ends.

Structs§

Chunk
Byte range assigned to one download chunk.
ChunkBitmap
Compact completion bitmap for a fixed number of chunks.
ChunkPlan
Precomputed chunk layout for a remote resource.
PartFile
Resumable on-disk part file with metadata slots and an exclusive lock.
PartMetadata
Persisted state for a resumable part file.
RemoteInfo
Remote resource properties captured before a download starts or resumes.

Enums§

HashConfig
Expected hash value for optional final-file verification.
HashKind
Hash algorithm identifier used in metadata and FFI configuration.
TakanawaError
Errors returned by Takanawa core, HTTP, and FFI layers.

Constants§

DEFAULT_CHUNK_SIZE
Default chunk size used when a caller passes 0 as the configured chunk size.
METADATA_VERSION
Current on-disk part metadata version.

Functions§

hash_url
Hashes a URL for stable storage in part-file metadata.
part_lock_path_for
Returns the companion .part.lock path for a target file.
part_path_for
Returns the companion .part path for a target file.
slot_size_for
Returns the aligned metadata slot size for a content length and chunk size.

Type Aliases§

Result
Result type used by Takanawa core APIs.