InkPersistenceLimits
struct · ferroui-controls-inking · v0.5.0
struct InkPersistenceLimits
Codec resource limits apply before allocation and cumulatively across records. The defaults permit a 64 MiB payload, 100,000 strokes, 65,536 samples per stroke and 1,000,000 samples in total.
These limits bound serialized input and raw telemetry. Stroke construction
and collection admission additionally reserve derived geometry against
InkStroke::MAX_RENDERED_VERTICES and
super::InkStrokeContainer::MAX_RENDERED_VERTICES. Changing codec limits
does not raise those limits or the collection's raw sample limits. Geometry
rejection returns InkError::LimitExceeded before the collection changes.
Cached raw/smoothed samples, contour vectors and renderer-owned geometry
occupy separate allocations; the serialized byte cap is not a total heap
memory cap.
Members
max_bytes
max_bytes: usize
max_strokes
max_strokes: usize
max_points_per_stroke
max_points_per_stroke: usize
max_total_points
max_total_points: usize
DEFAULT
const DEFAULT: Self
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherIUnknownImplCloneCopyDebugStructuralPartialEqPartialEqEqDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.