use thiserror::Error;
pub type Result<T> = core::result::Result<T, Error>;
#[derive(Debug, Error)]
pub enum Error {
#[error("transport error: {0}")]
Transport(String),
#[error("protocol encode error: {0}")]
ProtocolEncode(String),
#[error("protocol decode error: {0}")]
ProtocolDecode(String),
#[error("unsupported operation: {0}")]
Unsupported(String),
}