pub fn try_project_attributes_to_frame_metadata(
attributes: &UAttributes,
payload_encoding: Option<PayloadEncoding>,
) -> Result<UFrameMetadata, UFrameMetadataError>Expand description
Projects legacy UAttributes (plus an optional native payload encoding)
into native frame metadata.
When payload_encoding is None but the attributes carry a concrete
payload_format, the reserved registered encoding for that format is
used. When both are present they must agree.
ยงErrors
Returns an error if the attributes and encoding disagree or the resulting metadata is invalid.