rockraft 0.1.5

A strong consistency KV service library base on Raft and Rocksdb
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Debug, Clone, PartialEq, Eq, Error)]
pub enum GrpcConnectionError {
  #[error("invalid uri: {uri}, error: {msg}")]
  InvalidUri { uri: String, msg: String },

  #[error("{action} client tls config, error: {msg}")]
  TLSConfigError { action: String, msg: String },

  #[error("can not connect to {uri}, error: {msg}")]
  CannotConnect { uri: String, msg: String },
}