Trait OtherErr

Source
pub trait OtherErr {
    // Required method
    fn other(context: &'static str, description: &'static str) -> Self;
}
Expand description

Trait for creating generic “other” errors.

Required Methods§

Source

fn other(context: &'static str, description: &'static str) -> Self

Creates a new generic “other” error.

§Arguments
  • context - The context in which the error occurred.
  • description - A description of the error.
§Returns

A new error instance.

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.

Implementors§