Module error
Expand description
Error types and utilities.
Structs§
- NoCustom
Error Deprecated - An empty value indicating that there is no custom error type associated with this server function.
- Server
FnError Encoding - Serializes and deserializes JSON with
serde_json
. - Server
FnUrl Error - Associates a particular server function error with the server function found at a particular path.
- Wrap
Error Deprecated - Wraps some error type, which may implement any of
Error
,Clone
, orDisplay
.
Enums§
- Server
FnError - A type that can be used as the return type of the server function for easy error conversion with
?
operator. This type can be replaced with any other error type that implementsFromServerFnError
. - Server
FnError Err - Type for errors that can occur when using server functions. If you need to return a custom error type from a server function, implement
FromServerFnError
for your custom error type.
Constants§
- SERVER_
FN_ ERROR_ HEADER - A custom header that can be used to indicate a server function returned an error.
Traits§
- From
Server FnError - A trait for types that can be returned from a server function.
- Into
AppError - A helper trait for converting a
ServerFnErrorErr
into an application-specific custom error type that implementsFromServerFnError
. - ViaError
Deprecated - This trait serves as the conversion method between a variety of types
and
ServerFnError
.