fx-event-bus 0.1.13

An event bus for monoliths, built with Postgres and sqlx
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(thiserror::Error, Debug)]
pub enum PublisherError {
    #[error("The event payload could not be serialized to JSON")]
    SerializationError {
        hash: i32,
        name: String,
        #[source]
        source: serde_json::Error,
    },

    #[error("The event could not be written to the database")]
    DatabaseError {
        hash: i32,
        name: String,
        #[source]
        source: sqlx::Error,
    },
}