pub enum ServerFnErrorErr<E = NoCustomError> {
WrappedServerError(E),
Registration(String),
Request(String),
ServerError(String),
Deserialization(String),
Serialization(String),
Args(String),
MissingArg(String),
Response(String),
}Expand description
Type for errors that can occur when using server functions.
Unlike ServerFnError, this implements std::error::Error. This means
it can be used in situations in which the Error trait is required, but it’s
not possible to create a blanket implementation that converts other errors into
this type.
ServerFnError and ServerFnErrorErr mutually implement From, so
it is easy to convert between the two types.
Variants§
WrappedServerError(E)
A user-defined custom error type, which defaults to NoCustomError.
Registration(String)
Error while trying to register the server function (only occurs in case of poisoned RwLock).
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.
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<E: Clone> Clone for ServerFnErrorErr<E>
impl<E: Clone> Clone for ServerFnErrorErr<E>
Source§fn clone(&self) -> ServerFnErrorErr<E>
fn clone(&self) -> ServerFnErrorErr<E>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<E: Debug> Debug for ServerFnErrorErr<E>
impl<E: Debug> Debug for ServerFnErrorErr<E>
Source§impl<E> Display for ServerFnErrorErr<E>where
E: Display,
impl<E> Display for ServerFnErrorErr<E>where
E: Display,
Source§impl<E> Error for ServerFnErrorErr<E>
impl<E> Error for ServerFnErrorErr<E>
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<CustErr> From<ServerFnError<CustErr>> for ServerFnErrorErr<CustErr>
impl<CustErr> From<ServerFnError<CustErr>> for ServerFnErrorErr<CustErr>
Source§fn from(value: ServerFnError<CustErr>) -> Self
fn from(value: ServerFnError<CustErr>) -> Self
Source§impl<CustErr> From<ServerFnUrlError<CustErr>> for ServerFnErrorErr<CustErr>
impl<CustErr> From<ServerFnUrlError<CustErr>> for ServerFnErrorErr<CustErr>
Source§fn from(error: ServerFnUrlError<CustErr>) -> Self
fn from(error: ServerFnUrlError<CustErr>) -> Self
Source§impl<E: PartialEq> PartialEq for ServerFnErrorErr<E>
impl<E: PartialEq> PartialEq for ServerFnErrorErr<E>
impl<E: Eq> Eq for ServerFnErrorErr<E>
impl<E> StructuralPartialEq for ServerFnErrorErr<E>
Auto Trait Implementations§
impl<E> Freeze for ServerFnErrorErr<E>where
E: Freeze,
impl<E> RefUnwindSafe for ServerFnErrorErr<E>where
E: RefUnwindSafe,
impl<E> Send for ServerFnErrorErr<E>where
E: Send,
impl<E> Sync for ServerFnErrorErr<E>where
E: Sync,
impl<E> Unpin for ServerFnErrorErr<E>where
E: Unpin,
impl<E> UnwindSafe for ServerFnErrorErr<E>where
E: UnwindSafe,
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> 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> 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.