pub trait Domain
where
Self: std::error::Error
+ 'static
+ std::fmt::Debug
+ Into<crate::error::Error<Self>>
+ Send
+ Sync,
{
fn with_context(self, context: impl std::fmt::Display) -> Self;
fn context(&self) -> Option<&str>;
fn into_source(self) -> Option<Box<dyn std::error::Error + Send + Sync>>;
}