pub trait CustomErrorFactory {
// Required method
fn create_error(&self) -> WriteError;
}Expand description
Trait to define custom error factories for WriteError
This trait allows extending WriteError with custom error constructors while allowing both library and user code to define their own error types.
Required Methods§
Sourcefn create_error(&self) -> WriteError
fn create_error(&self) -> WriteError
Create an error from this factory