razer 0.1.5

A server side way to controll your website with rust
Documentation
use std::fmt;

/// This will tell the sender what you want to do <br />
/// JS -> will run js on the website <br />
/// HTML -> will set the body tag <br />
/// EVAL -> will run the code and reply it to the eval event
#[derive(Debug, Clone, Copy)]
pub enum Event {
    JS,
    HTML,
    EVAL,
}

impl fmt::Display for Event {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        match self {
            Event::JS => write!(f, "js"),
            Event::HTML => write!(f, "html"),
            Event::EVAL => write!(f, "eval"),
        }
    }
}