Skip to main content

Module traits

Module traits 

Source
Expand description

Canonical Parse and Serialize traits for the DVB crate family.

Each implementer picks its own error type via type Error, so domain-specific error variants stay visible to the caller.

Traitsยง

Parse
Parse a DVB structure from raw bytes. Borrowing allowed via <'a>; the concrete error type is chosen per implementer.
Serialize
Serialize a DVB structure back to bytes. Split from Parse so owned and borrowed variants of the same type can implement Serialize without carrying a lifetime.