Struct OwnedRasterImportResult

Stable public result of one retained owned-raster import attempt.

struct OwnedRasterImportResult;

Arbitrary error/disposition combinations cannot be constructed through the public API.

The default .init state is deliberately a failure state, not success.

Properties

NameTypeDescription
error[get] OwnedRasterImportErrorPublic error category.
ok[get] boolWhether the import completed successfully.
planeIndex[get] ulongZero-based failing logical plane for invalidPlaneLayout.
resourceDisposition[get] OwnedRasterResourceDispositionDisposition of the physical release obligation.

Example

Example inspecting the deliberately failing default import result.

import raster;

OwnedRasterImportResult result;
assert(!result.ok);
assert(result.planeIndex == size_t.max);
assert(result.resourceDisposition == OwnedRasterResourceDisposition.unchanged);