noah_protocol/lib.rs
1pub mod grpc {
2 tonic::include_proto!("noah");
3}
4
5pub use grpc::*;
6
7#[derive(Debug, thiserror::Error)]
8pub enum NoahError {
9 #[error("Key not found: {0}")]
10 KeyNotFound(String),
11 #[error("Invalid operation: {0}")]
12 InvalidOperation(String),
13}
14
15pub type Result<T> = std::result::Result<T, NoahError>;