Trait FromServerFnError
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§
fn 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", so this trait is not object safe.