Skip to main content

FormatRolesExt

Trait FormatRolesExt 

Source
pub trait FormatRolesExt<This>{
    // Required method
    fn offered_streams(&self) -> Vec<MediaStreams>;
}
Expand description

Derives which stream roles a request may actually be asked for.

Required Methods§

Source

fn offered_streams(&self) -> Vec<MediaStreams>

States the roles some described format carries, and every role while none are described.

A chooser offers what can be chosen. Asking for sound alone from a source that only ever states one file carrying both would select nothing at all, so a role no format carries is not offered at all. Before anything is described there is nothing to rule out, and every role stands.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<This> FormatRolesExt<This> for This

Derives which stream roles a request may actually be asked for.