Skip to content

Struct framing::EncodedFrame

zaun_community_protocol::framing::EncodedFrame · Struct

pub struct EncodedFrame { … }

The transport messages of one frame, in sending order.

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

The text messages to send, in order.

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

Consumes the frame into its messages.

pub fn smp_messages(&self) -> usize

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

pub fn is_whole(&self) -> bool

Whether the frame is a single whole message.

Clone, Debug, Eq, PartialEq, StructuralPartialEq

Full rustdoc page