Skip to main content

Module common

Module common 

Source
Available on (crate features blocking or tokio or serial) and (crate features blocking or tokio) only.
Expand description

Shared types used by both the blocking and tokio adapter modules.

Living here rather than in either adapter module so that enabling one adapter doesn’t require enabling the other to resolve UploadOptions / UploadStats / UploadError symbols.

Structs§

Progress
Per-chunk progress payload passed to a ProgressCallback. Values are cumulative across the upload.
UploadOptions
Caller-supplied options controlling the upload.
UploadStats
Upload statistics returned on success.

Enums§

UploadError
Errors the adapter upload helpers can produce.

Type Aliases§

ProgressCallback
Closure type the adapters invoke after each acknowledged WRITE packet. Boxed for object safety; Send so async callers can ship the callback into spawn_blocking.