kvid 0.1.7

Distributed ID generator with dual-segment preloading and lock-free fast path / 双号段预加载、无锁快速路径的分布式 ID 生成器
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::result;

use fred::error::Error as FredError;
use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
  #[error(transparent)]
  Kv(#[from] FredError),
}

pub type Result<T> = result::Result<T, Error>;