Skip to main content

IntoRendition

Trait IntoRendition 

Source
pub trait IntoRendition<E: CatalogExt, D> {
    type Config: RenditionConfig<E> + AsMut<D>;

    // Required method
    fn into_rendition(self) -> Self::Config;
}
Expand description

The config a data producer (Producer::json_stream and the like) publishes as its catalog entry.

Implemented for the json::Config builder, which lists the track in the json section. Also implemented for any RenditionConfig that embeds the data config D (JsonConfig) through AsMut, which is how an application lists a data track in its own section beside its own per-track fields; see the RenditionConfig example.

The producer sets the embedded config’s mode and owns the entry: it is written when the producer is created and removed when it drops.

Required Associated Types§

Source

type Config: RenditionConfig<E> + AsMut<D>

The catalog entry, embedding D.

Required Methods§

Source

fn into_rendition(self) -> Self::Config

Build the catalog entry.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§