ExportStatus

sealed interface ExportStatus(source)

What an export is doing, as it does it.

There is no cancelled arm. Cancel by cancelling the collecting scope, which cancels the export and propagates a CancellationException.

Inheritors

Types

Link copied to clipboard
class Adjusted(val adjustments: List<Adjustment>) : ExportStatus

Emitted at most once, before any Progress, when the plan differs from the request.

Link copied to clipboard

The export failed.

Link copied to clipboard
sealed interface Finished : ExportStatus

The terminal statuses, as their own type.

Link copied to clipboard
class Progress(val fraction: Float, val position: Duration?, val estimatedRemaining: Duration?) : ExportStatus

How far along the export is.

Link copied to clipboard
data object Started : ExportStatus

The export has actually begun.

Link copied to clipboard
class Success(val output: MediaSink, val info: MediaInfo, val adjustments: List<Adjustment>) : ExportStatus, ExportStatus.Finished

The export finished and wrote output.