//! Error types returned by bus operations.
use Error;
/// Errors returned by [`MessageBus`](crate::MessageBus) operations.
///
/// Both variants describe failure modes that should be rare in well-behaved programs:
/// channel disconnection cannot happen on a live `MessageBus` (the bus owns both ends of
/// the channel), and lock poisoning only occurs when another thread panics while holding
/// the handler-registry lock.
/// Convenience alias for [`std::result::Result`] specialised to [`BarkerError`].
pub type Result<T> = Result;