[−][src]Trait mcai_worker_sdk::MessageEvent
Trait to describe a worker
Implement this trait to implement a worker
Required methods
fn get_name(&self) -> String
fn get_short_description(&self) -> String
fn get_description(&self) -> String
fn get_version(&self) -> Version
fn get_parameters(&self) -> Vec<Parameter>
Provided methods
fn process(
&self,
_channel: Option<&Channel>,
_job: &Job,
_job_result: JobResult
) -> Result<JobResult, MessageError> where
Self: Sized,
&self,
_channel: Option<&Channel>,
_job: &Job,
_job_result: JobResult
) -> Result<JobResult, MessageError> where
Self: Sized,