#[non_exhaustive]pub enum RustStreamError {
Connect(Box<dyn StdError + Send + Sync>),
Startup(Box<dyn StdError + Send + Sync>),
Subscribe(Box<dyn StdError + Send + Sync>),
Shutdown(Box<dyn StdError + Send + Sync>),
Join(JoinError),
Dispatch(String),
}Expand description
Errors surfaced while running a RustStream service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Connect(Box<dyn StdError + Send + Sync>)
A broker failed to connect at startup.
Startup(Box<dyn StdError + Send + Sync>)
An on_startup or after_startup lifespan hook failed.
Subscribe(Box<dyn StdError + Send + Sync>)
A subscription failed to open after connect.
Shutdown(Box<dyn StdError + Send + Sync>)
A broker failed to shutdown during graceful shutdown.
Join(JoinError)
A dispatch task panicked or was aborted.
Dispatch(String)
A subscriber hit a fail-fast failure (a handler panic, or a decode failure under
on_failure(decode = fail_fast)) and tore the service down. The string names the
subscription and the reason.
Trait Implementations§
Source§impl Debug for RustStreamError
impl Debug for RustStreamError
Source§impl Display for RustStreamError
impl Display for RustStreamError
Source§impl Error for RustStreamError
impl Error for RustStreamError
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<RustStreamError> for CliError
impl From<RustStreamError> for CliError
Source§fn from(source: RustStreamError) -> Self
fn from(source: RustStreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RustStreamError
impl !UnwindSafe for RustStreamError
impl Freeze for RustStreamError
impl Send for RustStreamError
impl Sync for RustStreamError
impl Unpin for RustStreamError
impl UnsafeUnpin for RustStreamError
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