Struct framing::EncodedFrame
zaun_community_protocol::framing::EncodedFrame · Struct
pub struct EncodedFrame { … }The transport messages of one frame, in sending order.
Methods
Section titled “Methods”messages
Section titled “messages”pub fn messages(&self) -> &[String]The text messages to send, in order.
into_messages
Section titled “into_messages”pub fn into_messages(self) -> Vec<String>Consumes the frame into its messages.
smp_messages
Section titled “smp_messages”pub fn smp_messages(&self) -> usizeSMP messages this frame costs against the in-flight window: one per message.
is_whole
Section titled “is_whole”pub fn is_whole(&self) -> boolWhether the frame is a single whole message.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Eq, PartialEq, StructuralPartialEq