pub trait MessageHandler {
// Required methods
fn job_command(&mut self, job: Job);
fn error_reply(&mut self, id: RequestId, error: ErrorReply);
fn status_reply(&mut self, id: RequestId, status: String);
fn job_reply(&mut self, id: RequestId, job: Box<JobAssignment>);
}Expand description
Trait for objects that can handle messages received from the pool.