Skip to main content

Executable

Trait Executable 

Source
pub trait Executable: Send {
    type Error;

    // Required methods
    fn exec_type(&self) -> ExecutionType;
    fn task_name(&self) -> &'static str;
    fn periodic_op(&mut self, op_code: i32) -> Result<OpResult, Self::Error>;
}
Available on crate feature std only.

Required Associated Types§

Required Methods§

Source

fn exec_type(&self) -> ExecutionType

Source

fn task_name(&self) -> &'static str

Source

fn periodic_op(&mut self, op_code: i32) -> Result<OpResult, Self::Error>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§