Trait ProcConfig

Source
pub trait ProcConfig<M>
where M: 'static + Send + Sync + Sized + Clone + Debug + Tvf + Default,
{ type Settings; // Required methods fn create(proc_id: u32, main: Main<M>, settings: Self::Settings) -> Self; fn get_proc_param(&self) -> &ProcParam<M>; // Provided method fn create_raw(proc_id: u32, main: Main<M>) -> Self where Self: Sized, Self::Settings: Default { ... } }
Expand description

Trait to define ProSA processor configuration

Define by the macro proc

Required Associated Types§

Source

type Settings

Settings use for the ProSA processor

Required Methods§

Source

fn create(proc_id: u32, main: Main<M>, settings: Self::Settings) -> Self

Method to create a processor out of it’s configuration

Source

fn get_proc_param(&self) -> &ProcParam<M>

Getter of the processor parameters

Provided Methods§

Source

fn create_raw(proc_id: u32, main: Main<M>) -> Self
where Self: Sized, Self::Settings: Default,

Method to create a processor with not specific configuration

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§

Source§

impl<M> ProcConfig<M> for InjProc<M>
where M: 'static + Send + Sync + Sized + Clone + Debug + Tvf + Default,

Source§

impl<M> ProcConfig<M> for StubProc<M>
where M: 'static + Send + Sync + Sized + Clone + Debug + Tvf + Default,