Trait TerdocClientTrait

Source
pub trait TerdocClientTrait {
    type Error;

    // Required method
    fn request_render(
        &mut self,
        task: &TaskData,
    ) -> impl Future<Output = Result<Vec<u8>, Self::Error>> + Send;
}
Expand description

Terdoc client

Required Associated Types§

Source

type Error

Error type that is returns incase there was an issue during the render request.

Required Methods§

Source

fn request_render( &mut self, task: &TaskData, ) -> impl Future<Output = Result<Vec<u8>, Self::Error>> + Send

Request the terdoc service to render a document and return the document bytes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§