MessageHandler

Trait MessageHandler 

Source
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.

Required Methods§

Source

fn job_command(&mut self, job: Job)

Source

fn error_reply(&mut self, id: RequestId, error: ErrorReply)

Source

fn status_reply(&mut self, id: RequestId, status: String)

Source

fn job_reply(&mut self, id: RequestId, job: Box<JobAssignment>)

Implementors§