pub type DynError<T> = Result<T, Box<dyn Error>>;Expand description
Rust is a wrapper for the standard library’s std::error::Error trait, which is used to define the behavior of types that can be used for error handling. It provides a way to represent errors in a consistent and type-safe manner.
Aliased Type§
pub enum DynError<T> {
Ok(T),
Err(Box<dyn Error>),
}