pub trait ErrorPolicyProviderwhere
Self: Sized,{
// Required method
fn get_error_policy(&self) -> ErrorPolicy<Self>;
}
Expand description
Trait that can be implemented for custom error types.
Different variants in said error types can then be given different ErrorPolicy
assignments.
Required Methods§
fn get_error_policy(&self) -> ErrorPolicy<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.