pub trait Descriptor<'a>: Parse<'a> + Serialize {
const TAG: u8;
// Required method
fn descriptor_length(&self) -> u8;
}Expand description
Contract every DVB descriptor implements.
Descriptors are length-prefixed payloads inside tables. The
TAG constant ties a struct to its wire identifier.
Required Associated Constants§
Required Methods§
Sourcefn descriptor_length(&self) -> u8
fn descriptor_length(&self) -> u8
Length of the payload portion (NOT including the 2 header bytes).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".