# Enum framing::EncodeError

> Why an envelope cannot be framed.

`zaun_community_protocol::framing::EncodeError` · Enum

```rust
pub enum EncodeError { … }
```

Why an envelope cannot be framed.

## Variants

### `TooLarge { len, max }`

The envelope JSON exceeds `max_frame`.

### `TooManyFragments { max }`

The envelope needs more than `MAX_FRAGMENTS` fragments at this budget.

### `BudgetTooSmall { budget, min }`

The budget cannot hold a fragment header plus one character.

## Trait implementations

`Clone`, `Copy`, `Debug`, `Display`, `Eq`, `Error`, `From<EncodeError>`, `PartialEq`, `StructuralPartialEq`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/framing/encode/enum.EncodeError.html)
