#[derive(Debug, thiserror::Error)]
pub enum PluginError {
#[error("plugin does not implement this method")]
Unsupported,
#[error("proto decode failed: {0}")]
Decode(#[from] prost::DecodeError),
#[error("plugin op error [{code}] {message}")]
Op {
code: String,
message: String,
},
#[error("{0}")]
Other(String),
}
pub type Result<T> = core::result::Result<T, PluginError>;