Trait BackendPromise

Source
pub trait BackendPromise {
    type Output;

    // Required methods
    fn sync(self) -> StatelessBackendResult<Self::Output>;
    fn is_ready(&self) -> bool;
}
Expand description

Trait for representing pending encoder output.

Required Associated Types§

Required Methods§

Source

fn sync(self) -> StatelessBackendResult<Self::Output>

Return coded result of the processing. Blocks if processing is not finished yet.

Source

fn is_ready(&self) -> bool

Return true whenever the underlaying processing is done

Implementors§