server_fn::error

Trait ViaError

Source
pub trait ViaError<E> {
    // Required method
    fn to_server_error(&self) -> ServerFnError<E>;
}
Expand description

This trait serves as the conversion method between a variety of types and ServerFnError.

Required Methods§

Source

fn to_server_error(&self) -> ServerFnError<E>

Converts something into an error.

Implementors§

Source§

impl ViaError<NoCustomError> for &&&WrapError<()>

Source§

impl<E> ViaError<E> for WrapError<E>

Source§

impl<E: Error + Clone> ViaError<E> for &&WrapError<E>

Source§

impl<E: Display + Clone> ViaError<E> for &WrapError<E>

Source§

impl<E: ServerFnErrorKind + Error + Clone> ViaError<E> for &&&&WrapError<ServerFnError<E>>