pub struct InkPersistenceLimits {
pub max_bytes: usize,
pub max_strokes: usize,
pub max_points_per_stroke: usize,
pub max_total_points: usize,
}Expand description
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.
Fields§
§max_bytes: usize§max_strokes: usize§max_points_per_stroke: usize§max_total_points: usizeImplementations§
Trait Implementations§
Source§impl Clone for InkPersistenceLimits
impl Clone for InkPersistenceLimits
impl Copy for InkPersistenceLimits
Source§impl Debug for InkPersistenceLimits
impl Debug for InkPersistenceLimits
Source§impl Default for InkPersistenceLimits
impl Default for InkPersistenceLimits
impl Eq for InkPersistenceLimits
Source§impl PartialEq for InkPersistenceLimits
impl PartialEq for InkPersistenceLimits
impl StructuralPartialEq for InkPersistenceLimits
Auto Trait Implementations§
impl Freeze for InkPersistenceLimits
impl RefUnwindSafe for InkPersistenceLimits
impl Send for InkPersistenceLimits
impl Sync for InkPersistenceLimits
impl Unpin for InkPersistenceLimits
impl UnsafeUnpin for InkPersistenceLimits
impl UnwindSafe for InkPersistenceLimits
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more