pub enum ServerFnErrorErr {
Registration(String),
UnsupportedRequestMethod(String),
Request(String),
ServerError(String),
MiddlewareError(String),
Deserialization(String),
Serialization(String),
Args(String),
MissingArg(String),
Response(String),
}Expand description
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.
Variants§
Registration(String)
Error while trying to register the server function (only occurs in case of poisoned RwLock).
UnsupportedRequestMethod(String)
Occurs on the client if trying to use an unsupported HTTP method when building a request.
Request(String)
Occurs on the client if there is a network error while trying to run function on server.
ServerError(String)
Occurs when there is an error while actually running the function on the server.
MiddlewareError(String)
Occurs when there is an error while actually running the middleware on the server.
Deserialization(String)
Occurs on the client if there is an error deserializing the server’s response.
Serialization(String)
Occurs on the client if there is an error serializing the server function arguments.
Args(String)
Occurs on the server if there is an error deserializing one of the arguments that’s been sent.
MissingArg(String)
Occurs on the server if there’s a missing argument.
Response(String)
Occurs on the server if there is an error creating an HTTP response.
Trait Implementations§
Source§impl Clone for ServerFnErrorErr
impl Clone for ServerFnErrorErr
Source§fn clone(&self) -> ServerFnErrorErr
fn clone(&self) -> ServerFnErrorErr
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ServerFnErrorErr
impl Debug for ServerFnErrorErr
Source§impl<'de> Deserialize<'de> for ServerFnErrorErr
impl<'de> Deserialize<'de> for ServerFnErrorErr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServerFnErrorErr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServerFnErrorErr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Display for ServerFnErrorErr
impl Display for ServerFnErrorErr
Source§impl Error for ServerFnErrorErr
impl Error for ServerFnErrorErr
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl<E> IntoAppError<E> for ServerFnErrorErrwhere
E: FromServerFnError,
impl<E> IntoAppError<E> for ServerFnErrorErrwhere
E: FromServerFnError,
Source§fn into_app_error(self) -> E
fn into_app_error(self) -> E
ServerFnErrorErr into the application-specific custom error type.Source§impl PartialEq for ServerFnErrorErr
impl PartialEq for ServerFnErrorErr
Source§impl Serialize for ServerFnErrorErr
impl Serialize for ServerFnErrorErr
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for ServerFnErrorErr
impl StructuralPartialEq for ServerFnErrorErr
Auto Trait Implementations§
impl Freeze for ServerFnErrorErr
impl RefUnwindSafe for ServerFnErrorErr
impl Send for ServerFnErrorErr
impl Sync for ServerFnErrorErr
impl Unpin for ServerFnErrorErr
impl UnwindSafe for ServerFnErrorErr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FromFormData for Twhere
T: DeserializeOwned,
impl<T> FromFormData for Twhere
T: DeserializeOwned,
Source§fn from_event(ev: &Event) -> Result<T, FromFormDataError>
fn from_event(ev: &Event) -> Result<T, FromFormDataError>
submit event.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more