#[non_exhaustive]pub struct CmsQuote {Show 13 fields
pub supports_u8: bool,
pub supports_u16: bool,
pub supports_f16: bool,
pub supports_f32: bool,
pub supports_cmyk: bool,
pub supports_absolute_colorimetric: bool,
pub supports_float_mpe: bool,
pub build_memory_bytes: Option<u64>,
pub transform_memory_bytes: Option<u64>,
pub apply_scratch_bytes: Option<u64>,
pub peak_stack_bytes: Option<u32>,
pub small_stack_qualified: bool,
pub concurrent_apply: bool,
}Expand description
Conservative capability, memory, stack, and concurrency quote for a CmsBinding.
Hosts and routing planners inspect this quote before admitting a CMS transform
against memory limits, constrained thread stacks (such as 256 KiB IIS worker stacks),
or concurrency pools. None means the bound is unknown/unproven for arbitrary
profiles and cannot authorize a strict hard limit without route qualification or
explicit best-effort policy.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.supports_u8: boolSupports SampleType::U8 transforms.
supports_u16: boolSupports SampleType::U16 transforms.
supports_f16: boolSupports SampleType::F16 transforms.
supports_f32: boolSupports SampleType::F32 transforms.
supports_cmyk: boolSupports ColorSpace::Cmyk ink transforms.
supports_absolute_colorimetric: boolSupports RenderingIntent::AbsoluteColorimetric (media-white / chad un-adaptation).
supports_float_mpe: boolSupports ICC v4 float D2B*/B2D* MPE pipelines.
build_memory_bytes: Option<u64>Proven conservative heap bytes allocated while building one transform (None = unknown).
transform_memory_bytes: Option<u64>Proven conservative heap bytes retained per live CmsTransform (None = unknown).
apply_scratch_bytes: Option<u64>Proven conservative heap bytes allocated per transform_row call (Some(0) = zero-alloc apply; None = unknown).
peak_stack_bytes: Option<u32>Proven conservative peak stack bytes consumed by build_transform / transform_row (None = unknown).
small_stack_qualified: boolWhether build_transform and transform_row are qualified for constrained 256 KiB stacks.
concurrent_apply: boolWhether concurrent transform_row calls across threads are lock-free / contention-free.
Implementations§
Source§impl CmsQuote
impl CmsQuote
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Conservative empty quote with all capabilities disabled, unknown bounds (None),
and small_stack_qualified = false.
Sourcepub const fn with_absolute_colorimetric(self, yes: bool) -> Self
pub const fn with_absolute_colorimetric(self, yes: bool) -> Self
Set RenderingIntent::AbsoluteColorimetric support.
Sourcepub const fn with_float_mpe(self, yes: bool) -> Self
pub const fn with_float_mpe(self, yes: bool) -> Self
Set ICC v4 float MPE (D2B*/B2D*) support.
Sourcepub const fn with_build_memory_bytes(self, bytes: Option<u64>) -> Self
pub const fn with_build_memory_bytes(self, bytes: Option<u64>) -> Self
Set proven conservative heap bytes used while building one transform (None = unknown).
Sourcepub const fn with_transform_memory_bytes(self, bytes: Option<u64>) -> Self
pub const fn with_transform_memory_bytes(self, bytes: Option<u64>) -> Self
Set proven conservative heap bytes retained per live CmsTransform (None = unknown).
Sourcepub const fn with_apply_scratch_bytes(self, bytes: Option<u64>) -> Self
pub const fn with_apply_scratch_bytes(self, bytes: Option<u64>) -> Self
Set proven conservative heap bytes allocated per transform_row call (Some(0) = zero-alloc apply).
Sourcepub const fn with_peak_stack_bytes(self, bytes: Option<u32>) -> Self
pub const fn with_peak_stack_bytes(self, bytes: Option<u32>) -> Self
Set proven conservative peak stack bytes used by build_transform and transform_row.
Sourcepub const fn with_small_stack_qualified(self, yes: bool) -> Self
pub const fn with_small_stack_qualified(self, yes: bool) -> Self
Declare whether this backend is qualified for constrained 256 KiB thread stacks.
Sourcepub const fn with_concurrent_apply(self, yes: bool) -> Self
pub const fn with_concurrent_apply(self, yes: bool) -> Self
Declare whether concurrent transform_row calls across threads are contention-free.