# Struct framing::EncodedFrame

> The transport messages of one frame, in sending order.

`zaun_community_protocol::framing::EncodedFrame` · Struct

```rust
pub struct EncodedFrame { … }
```

The transport messages of one frame, in sending order.

## Methods

### `messages`

```rust
pub fn messages(&self) -> &[String]
```

The text messages to send, in order.

### `into_messages`

```rust
pub fn into_messages(self) -> Vec<String>
```

Consumes the frame into its messages.

### `smp_messages`

```rust
pub fn smp_messages(&self) -> usize
```

SMP messages this frame costs against the in-flight window: one per message.

### `is_whole`

```rust
pub fn is_whole(&self) -> bool
```

Whether the frame is a single whole message.

## Trait implementations

`Clone`, `Debug`, `Eq`, `PartialEq`, `StructuralPartialEq`

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