pub trait FromServerFnError:
Sized
+ Debug
+ 'static {
type Encoder: Encodes<Self> + Decodes<Self>;
// Required method
fn from_server_fn_error(value: ServerFnErrorErr) -> Self;
// Provided methods
fn ser(&self) -> Bytes { ... }
fn de(data: Bytes) -> Self { ... }
}Expand description
A trait for types that can be returned from a server function.
Required Associated Types§
Required Methods§
Sourcefn from_server_fn_error(value: ServerFnErrorErr) -> Self
fn from_server_fn_error(value: ServerFnErrorErr) -> Self
Converts a ServerFnErrorErr into the application-specific custom error type.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".