1 2 3 4 5 6 7 8
use protocol::Protocol; use transport::Transport; use Result; pub trait Processor<P: Protocol, T: Transport> { fn process(&self, prot: &mut P, transport: &mut T) -> Result<()>; }
1 2 3 4 5 6 7 8
use protocol::Protocol; use transport::Transport; use Result; pub trait Processor<P: Protocol, T: Transport> { fn process(&self, prot: &mut P, transport: &mut T) -> Result<()>; }