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 Archive for ServerFnErrorErr
impl Archive for ServerFnErrorErr
Source§type Archived = ArchivedServerFnErrorErr
type Archived = ArchivedServerFnErrorErr
Source§type Resolver = ServerFnErrorErrResolver
type Resolver = ServerFnErrorErrResolver
Source§fn resolve(&self, resolver: Self::Resolver, out: Place<Self::Archived>)
fn resolve(&self, resolver: Self::Resolver, out: Place<Self::Archived>)
Source§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
serialize. Read moreSource§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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl<__D: Fallible + ?Sized> Deserialize<ServerFnErrorErr, __D> for Archived<ServerFnErrorErr>
impl<__D: Fallible + ?Sized> Deserialize<ServerFnErrorErr, __D> for Archived<ServerFnErrorErr>
Source§fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<ServerFnErrorErr, <__D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<ServerFnErrorErr, <__D as Fallible>::Error>
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
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 UnsafeUnpin for ServerFnErrorErr
impl UnwindSafe for ServerFnErrorErr
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
Source§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
Archive, it may be
unsized. Read moreSource§fn archived_metadata(
&self,
) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
fn archived_metadata( &self, ) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
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§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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T, S> SerializeUnsized<S> for T
impl<T, S> SerializeUnsized<S> for T
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.