pub trait ProcConfig<M>{
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§
Required Methods§
Sourcefn create(proc_id: u32, main: Main<M>, settings: Self::Settings) -> Self
fn create(proc_id: u32, main: Main<M>, settings: Self::Settings) -> Self
Method to create a processor out of it’s configuration
Sourcefn get_proc_param(&self) -> &ProcParam<M>
fn get_proc_param(&self) -> &ProcParam<M>
Getter of the processor parameters
Provided Methods§
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.