Trait 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.

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§