#[derive(FrameWrite)]
{
// Attributes available to this derive:
#[frame]
}
Expand description
Derives ace_core::codec::FrameWrite for a struct or enum.
Generates both encode paths gated by the alloc feature:
#[cfg(not(feature = "alloc"))]- writes into&mut &mut [u8]cursor#[cfg(feature = "alloc")]- appends intobytes::BytesMut
All non-skipped fields are encoded in declaration order by delegating
to each field type’s FrameWrite impl. #[frame(length = "...")] and
#[frame(read_all)] are decode-only hints and have no effect on encode.
Supports the same container, field, and variant attributes as FrameRead.