1 2 3 4 5
use crate::IdWorkerError; pub trait IdWorker: Send + Sync { fn next_id(&self) -> Result<u64, IdWorkerError>; }