//! Errors returned by mediator lifecycle and typed event queue operations.
/// Error returned when a mediator is started more than once.
///
/// A mediator starts its generated event workers and `#[medi_task]` tasks at
/// most once. Check `is_started` before calling `start` when needed.
/// Error returned by a non-blocking event publish attempt.
///
/// The event is returned so callers can retry, persist, or discard it.
/// Framework error for queue operations.
/// Framework result used by event publishing and queue operations.
pub type Result<T> = Result;