pub enum EventBusError {
Stopped,
ChannelFull,
ShutdownTimeout,
InvalidConfig(ConfigError),
MiddlewareRejected(String),
}Expand description
Errors returned by EventBus publish and shutdown
operations.
Variants§
Stopped
The bus has been shut down.
Returned by all publish, subscribe, unsubscribe, and stats calls made
after EventBus::shutdown has been
invoked.
ChannelFull
The internal channel buffer is full and no capacity is available.
Only returned by EventBus::try_publish.
Use EventBus::publish to wait for
available capacity instead.
ShutdownTimeout
Shutdown timed out before all in-flight async tasks completed.
Remaining tasks were aborted. Returned by
EventBus::shutdown when a
shutdown_timeout was
configured and elapsed.
InvalidConfig(ConfigError)
The builder configuration is invalid.
MiddlewareRejected(String)
A middleware rejected the event before it reached any listener.
Trait Implementations§
Source§impl Clone for EventBusError
impl Clone for EventBusError
Source§fn clone(&self) -> EventBusError
fn clone(&self) -> EventBusError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventBusError
impl Debug for EventBusError
Source§impl Display for EventBusError
impl Display for EventBusError
Source§impl Error for EventBusError
impl Error for EventBusError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ConfigError> for EventBusError
impl From<ConfigError> for EventBusError
Source§fn from(err: ConfigError) -> Self
fn from(err: ConfigError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EventBusError
impl PartialEq for EventBusError
impl Eq for EventBusError
impl StructuralPartialEq for EventBusError
Auto Trait Implementations§
impl Freeze for EventBusError
impl RefUnwindSafe for EventBusError
impl Send for EventBusError
impl Sync for EventBusError
impl Unpin for EventBusError
impl UnsafeUnpin for EventBusError
impl UnwindSafe for EventBusError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more