pub struct DecodedPayload {
pub header: BcpHeader,
pub blocks: Vec<Block>,
}Expand description
The result of decoding a BCP payload.
Contains the parsed file header and an ordered sequence of typed
blocks. The END sentinel is consumed during decoding and is not
included in the blocks vector.
┌──────────────────────────────────────────────────┐
│ DecodedPayload │
│ header: BcpHeader ← version, flags │
│ blocks: Vec<Block> ← ordered content blocks │
└──────────────────────────────────────────────────┘Fields§
§header: BcpHeaderThe parsed file header (magic validated, version checked).
blocks: Vec<Block>Ordered sequence of blocks, excluding the END sentinel.
Block ordering matches the wire order. Annotation blocks
appear at whatever position the encoder placed them, with
target_block_id referencing earlier blocks by index.
Auto Trait Implementations§
impl Freeze for DecodedPayload
impl RefUnwindSafe for DecodedPayload
impl Send for DecodedPayload
impl Sync for DecodedPayload
impl Unpin for DecodedPayload
impl UnsafeUnpin for DecodedPayload
impl UnwindSafe for DecodedPayload
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more