pub trait ProtobufHandler {
// Provided methods
fn decode_request(&self, request: &[u8]) -> Result<PluginRequest, String> { ... }
fn encode_response(&self, response: PluginResponse) -> Vec<u8> ⓘ { ... }
fn encode_error(&self, error: &str) -> Vec<u8> ⓘ { ... }
}