# InkPersistenceLimits

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-inking/struct-inkpersistencelimits/

**struct** · [`ferroui-controls-inking`](/docs/0.5.0/api/ferroui-controls-inking/) · v0.5.0

```rust
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.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/persistence.rs#L33)

## Members

- [`max_bytes`](#struct_field-max_bytes)
- [`max_strokes`](#struct_field-max_strokes)
- [`max_points_per_stroke`](#struct_field-max_points_per_stroke)
- [`max_total_points`](#struct_field-max_total_points)
- [`DEFAULT`](#assoc_const-default)

<a id="struct_field-max_bytes"></a>

### max_bytes

```rust
max_bytes: usize
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/persistence.rs#L34)

<a id="struct_field-max_strokes"></a>

### max_strokes

```rust
max_strokes: usize
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/persistence.rs#L35)

<a id="struct_field-max_points_per_stroke"></a>

### max_points_per_stroke

```rust
max_points_per_stroke: usize
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/persistence.rs#L36)

<a id="struct_field-max_total_points"></a>

### max_total_points

```rust
max_total_points: usize
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/persistence.rs#L37)

<a id="assoc_const-default"></a>

### DEFAULT

```rust
const DEFAULT: Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/persistence.rs#L40)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `IUnknownImpl`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Default`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
