Skip to main content

Module async_io

Module async_io 

Source
Available on crate feature async only.
Expand description

Tokio-based async I/O traits for the additive library-side async surface. Tokio-based async I/O traits for the library-side async surface.

The existing sync APIs remain the default path in mp4forge. The first async rollout is intentionally limited to seekable library readers and writers such as Tokio file handles or in-memory buffers. Later queue-backed follow-ons can also use the forward-only async reader and writer aliases in this module when a surface can operate progressively without seeks. The CLI continues to use the sync surface.

Traitsยง

AsyncRead
Tokio async read trait used by the library-side async surface. Reads bytes from a source.
AsyncReadForward
Async reader alias for forward-only library inputs.
AsyncReadSeek
Async reader alias for seekable library inputs.
AsyncSeek
Tokio async seek trait used by the library-side async surface. Seek bytes asynchronously.
AsyncWrite
Tokio async write trait used by the library-side async surface. Writes bytes asynchronously.
AsyncWriteForward
Async writer alias for forward-only library outputs.
AsyncWriteSeek
Async writer alias for seekable library outputs.