Skip to main content

Processor

Trait Processor 

Source
pub trait Processor: 'static {
    type Handle: ProcessorHandle;

    // Required methods
    fn buffers_count() -> usize;
    fn slot_count() -> usize;
    fn call<E: Clone + Copy>(runtime: &Runtime<E>, handle: ContextHandle);
    fn create_states() -> Vec<Box<UnsafeCell<dyn Any + Send + 'static>>>;
    fn get_handle() -> Self::Handle;
}

Required Associated Types§

Required Methods§

Source

fn buffers_count() -> usize

Source

fn slot_count() -> usize

Source

fn call<E: Clone + Copy>(runtime: &Runtime<E>, handle: ContextHandle)

Source

fn create_states() -> Vec<Box<UnsafeCell<dyn Any + Send + 'static>>>

Source

fn get_handle() -> Self::Handle

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§