Skip to main content

FormatChoiceViewAlg

Trait FormatChoiceViewAlg 

Source
pub trait FormatChoiceViewAlg {
    type Format;

    // Required methods
    fn discovery(&self) -> DiscoveryState<'_>;
    fn described_formats(&self) -> impl Iterator<Item = &Self::Format>;
}
Expand description

Specifies what one queue entry states about the formats a chooser may offer.

Required Associated Types§

Source

type Format

Represents one described selectable format.

Required Methods§

Source

fn discovery(&self) -> DiscoveryState<'_>

Observes what discovery has stated about this request’s formats.

Source

fn described_formats(&self) -> impl Iterator<Item = &Self::Format>

Observes the described formats in extractor preference order.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§