basu 0.1.9

Eventbus crate with sync and async features
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Errors which can occur when interacting with `EventBus`.
#[derive(thiserror::Error, Debug)]
pub enum BasuError {
    /// Sync mutex lock is poisoned.
    #[error("Mutex is poisoned")]
    MutexPoisoned,

    /// Event type not found in `EventBus`.
    #[error("event type not found")]
    EventTypeNotFOUND,

    /// Error occurs when `Handler` processing event.
    #[error(transparent)]
    HandlerError(#[from] anyhow::Error),
}