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§
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".