Trait pulsar_backend::PulsarBackend

source ·
pub trait PulsarBackend {
    type InitInput;
    type Error;

    // Required methods
    fn new(input: Self::InitInput) -> Self;
    fn run(
        self,
        code: Vec<GeneratedTopLevel>,
        output: Output,
    ) -> Result<(), Self::Error>;
}

Required Associated Types§

Required Methods§

source

fn new(input: Self::InitInput) -> Self

Initializes the backend.

source

fn run( self, code: Vec<GeneratedTopLevel>, output: Output, ) -> Result<(), Self::Error>

Consumes the backend and produces an output.

Object Safety§

This trait is not object safe.

Implementors§