libsql_wal/replication/
mod.rs1use std::io;
2
3pub mod injector;
4pub mod replicator;
5pub mod storage;
6
7pub(crate) type Result<T, E = Error> = std::result::Result<T, E>;
8
9type BoxError = Box<dyn std::error::Error + Send + Sync + 'static>;
10
11#[derive(Debug, thiserror::Error)]
12pub enum Error {
13 #[error("io error {0}")]
14 IO(#[from] io::Error),
15 #[error("error fetching from storage: {0}")]
16 Storage(#[from] super::storage::Error),
17 #[error("error fetching from current segment: {0}")]
18 CurrentSegment(BoxError),
19 #[error("error fetching from sealed segment list: {0}")]
20 SealedSegment(BoxError),
21}