Handler

Trait Handler 

Source
pub trait Handler: AsRcAny {
    // Required methods
    fn set_handler_healthy(self: Rc<Self>);
    fn set_handler_unhealthy(self: Rc<Self>, msg: &str);
    fn get_name(&self) -> &'static str;
    fn interest(&self) -> Vec<InputEventType>;
}

Required Methods§

Source

fn set_handler_healthy(self: Rc<Self>)

Source

fn set_handler_unhealthy(self: Rc<Self>, msg: &str)

Source

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

Returns the name of the input handler.

Source

fn interest(&self) -> Vec<InputEventType>

Returns the types of input events this handler is interested in.

Implementors§