Skip to main content

Crate takanawa_ffi

Crate takanawa_ffi 

Source

Structs§

TknwDownload
Opaque download handle owned by the C ABI caller.
TknwDownloadConfig
Download creation configuration for tknw_download_create.
TknwDownloadSnapshot
Progress snapshot written by the C ABI.
TknwDownloadSpeedSnapshot
Download speed sample written by the C ABI.
TknwGlobalConfig
Global runtime configuration for tknw_global_init.

Enums§

TknwDownloadPhase
Download lifecycle phases reported in snapshot phase fields.
TknwHashKind
Hash algorithm identifiers used by the C ABI.
TknwStatus
Status codes returned by the C ABI.

Constants§

TKNW_ABI_VERSION
ABI version expected by all C-facing configuration structs.
TKNW_DOWNLOAD_PHASE_ALLOCATING
Numeric value for TknwDownloadPhase::Allocating.
TKNW_DOWNLOAD_PHASE_CANCELLED
Numeric value for TknwDownloadPhase::Cancelled.
TKNW_DOWNLOAD_PHASE_CANCELLING
Numeric value for TknwDownloadPhase::Cancelling.
TKNW_DOWNLOAD_PHASE_COMPLETED
Numeric value for TknwDownloadPhase::Completed.
TKNW_DOWNLOAD_PHASE_CREATED
Numeric value for TknwDownloadPhase::Created.
TKNW_DOWNLOAD_PHASE_FAILED
Numeric value for TknwDownloadPhase::Failed.
TKNW_DOWNLOAD_PHASE_PAUSED
Numeric value for TknwDownloadPhase::Paused.
TKNW_DOWNLOAD_PHASE_PAUSING
Numeric value for TknwDownloadPhase::Pausing.
TKNW_DOWNLOAD_PHASE_RUNNING
Numeric value for TknwDownloadPhase::Running.
TKNW_DOWNLOAD_PHASE_STARTING
Numeric value for TknwDownloadPhase::Starting.
TKNW_DOWNLOAD_PHASE_VERIFYING
Numeric value for TknwDownloadPhase::Verifying.

Functions§

tknw_download_cancel
Requests cancellation of a download.
tknw_download_copy_bitmap
Copies the serialized completion bitmap into buffer.
tknw_download_create
Creates a download handle.
tknw_download_last_error
Copies the most recent download error message into buffer as a C string.
tknw_download_last_error_code
Returns the most recent download error status code.
tknw_download_pause
Requests that a download pause after in-flight work winds down.
tknw_download_release
Releases a download handle and sets the caller’s handle pointer to null.
tknw_download_set_progress_callback
Installs or removes a progress callback for a download.
tknw_download_set_speed_callback
Installs or removes a speed callback for a download.
tknw_download_snapshot
Writes the current download snapshot to snapshot.
tknw_download_start
Starts or resumes a download.
tknw_global_init
Initializes or updates the global runtime used by C ABI downloads.
tknw_global_set_max_io
Updates the global maximum number of in-flight I/O operations.
tknw_global_shutdown
Shuts down the global runtime and drops shared engine state.

Type Aliases§

TknwProgressCallback
C callback invoked when download progress changes.
TknwProgressCallbackRelease
C callback invoked when a progress callback context is released.
TknwSpeedCallback
C callback invoked when download speed samples change.
TknwSpeedCallbackRelease
C callback invoked when a speed callback context is released.