pub trait ViaError<E> {
// Required method
fn to_server_error(&self) -> ServerFnError<E>;
}👎Deprecated since 0.8.0: Now server_fn can return any error type other than ServerFnError, so users should place their custom error type instead of ServerFnError
Expand description
This trait serves as the conversion method between a variety of types
and ServerFnError.
Required Methods§
Sourcefn to_server_error(&self) -> ServerFnError<E>
👎Deprecated since 0.8.0: Now server_fn can return any error type other than ServerFnError, so users should place their custom error type instead of ServerFnError
fn to_server_error(&self) -> ServerFnError<E>
Converts something into an error.