iconoclast 0.3.1

Reusable code for Rust-based business μServices
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[cfg(feature = "kafka")]
#[derive(Debug, thiserror::Error)]
pub enum Startup<PE: std::error::Error, LE: std::error::Error> {
    #[error(transparent)]
    Io(#[from] tokio::io::Error),

    #[error(transparent)]
    Kafka(#[from] crate::kafka::StreamError<PE, LE>),
}

#[cfg(not(feature = "kafka"))]
#[derive(Debug, thiserror::Error)]
pub enum Startup {
    #[error(transparent)]
    Io(#[from] tokio::io::Error),
}