pub trait RequestOptionsAlg {
// Required methods
fn performer(&self) -> Performer;
fn media_streams(&self) -> Option<MediaStreams>;
fn chosen_choice(&self) -> Option<&str>;
fn selectable_choices(&self) -> impl Iterator<Item = &str>;
fn choice_summary(&self, choice: &str) -> Option<&str>;
}Expand description
Specifies what one request states about the media it selects.
Required Methods§
Sourcefn media_streams(&self) -> Option<MediaStreams>
fn media_streams(&self) -> Option<MediaStreams>
Observes the stream roles the request prefers, and that it chooses no media when it transfers something a media role says nothing about.
Sourcefn chosen_choice(&self) -> Option<&str>
fn chosen_choice(&self) -> Option<&str>
Observes the one choice the request fixes, when it fixes one.
What the choices are depends on what the request transfers: one representation of a media item, or one way of transferring a folder. Either way, exactly one may be fixed.
Sourcefn selectable_choices(&self) -> impl Iterator<Item = &str>
fn selectable_choices(&self) -> impl Iterator<Item = &str>
Observes every choice the request offers, in the order it offers them.
A media item offers what extraction discovered, and its stream roles state which of them is preferred when none is fixed; they never hide one the source states. A folder offers every way it may be transferred.
Sourcefn choice_summary(&self, choice: &str) -> Option<&str>
fn choice_summary(&self, choice: &str) -> Option<&str>
Observes what one offered choice states about itself, when it states anything.
A choice a reader would not recognize by name says what it does; one described by what it carries is read through that description instead.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".