[][src]Trait servant::Servant

pub trait Servant {
    fn name(&self) -> &str;
fn category(&self) -> &'static str;
fn serve(&mut self, ctx: Option<Context>, req: Vec<u8>) -> Vec<u8>; }

Required methods

fn name(&self) -> &str

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

fn serve(&mut self, ctx: Option<Context>, req: Vec<u8>) -> Vec<u8>

Loading content...

Implementors

Loading content...