[][src]Trait operator::content::Render

pub trait Render {
    type Output;
    pub fn render<'engine, 'accept, ServerInfo, Engine, Accept>(
        &self,
        context: RenderContext<'engine, ServerInfo, Engine>,
        acceptable_media_ranges: Accept
    ) -> Result<Media<Self::Output>, RenderError>
    where
        ServerInfo: Clone + Serialize,
        Engine: ContentEngine<ServerInfo>,
        Accept: IntoIterator<Item = &'accept MediaRange>,
        Self::Output: ByteStream
; }

Associated Types

Loading content...

Required methods

pub fn render<'engine, 'accept, ServerInfo, Engine, Accept>(
    &self,
    context: RenderContext<'engine, ServerInfo, Engine>,
    acceptable_media_ranges: Accept
) -> Result<Media<Self::Output>, RenderError> where
    ServerInfo: Clone + Serialize,
    Engine: ContentEngine<ServerInfo>,
    Accept: IntoIterator<Item = &'accept MediaRange>,
    Self::Output: ByteStream
[src]

Loading content...

Implementors

impl Render for UnregisteredTemplate[src]

type Output = InMemoryBody

impl Render for ContentRepresentations[src]

type Output = Box<dyn ByteStream>

Loading content...