pub trait ThumbnailProvider {
    type GatheredDataT: Hash + 'static;

    // Required methods
    fn asset_type(&self) -> &'static str;
    fn version(&self) -> u32;
    fn gather(
        &self,
        context: ThumbnailProviderGatherContext<'_>
    ) -> Self::GatheredDataT;
    fn render<'a>(
        &'a self,
        context: &'a ThumbnailProviderRenderContext<'a>,
        gathered_data: Self::GatheredDataT
    ) -> PipelineResult<ThumbnailImage>;
}

Required Associated Types§

source

type GatheredDataT: Hash + 'static

Required Methods§

source

fn asset_type(&self) -> &'static str

source

fn version(&self) -> u32

source

fn gather( &self, context: ThumbnailProviderGatherContext<'_> ) -> Self::GatheredDataT

source

fn render<'a>( &'a self, context: &'a ThumbnailProviderRenderContext<'a>, gathered_data: Self::GatheredDataT ) -> PipelineResult<ThumbnailImage>

Implementors§