Trait Service
muta_protocol::traits
pub trait Service { fn write_(&mut self, ctx: ServiceContext) -> ProtocolResult<String>; fn read_(&self, ctx: ServiceContext) -> ProtocolResult<String>; fn hook_before_(&mut self) -> ProtocolResult<()> { ... } fn hook_after_(&mut self) -> ProtocolResult<()> { ... } }
fn write_(&mut self, ctx: ServiceContext) -> ProtocolResult<String>
fn read_(&self, ctx: ServiceContext) -> ProtocolResult<String>
fn hook_before_(&mut self) -> ProtocolResult<()>
fn hook_after_(&mut self) -> ProtocolResult<()>