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 state is deliberately a failure state, not success.
Properties
| Name | Type | Description |
|---|---|---|
error[get]
|
OwnedRasterImportError | Public error category. |
ok[get]
|
bool | Whether the import completed successfully. |
planeIndex[get]
|
ulong | Zero-based failing logical plane for invalidPlaneLayout. |
resourceDisposition[get]
|
OwnedRasterResourceDisposition | Disposition 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);