pub enum ServerFnError {
Registration(String),
Request(String),
ServerError(String),
Deserialization(String),
Serialization(String),
Args(String),
MissingArg(String),
}
Expand description
Type for errors that can occur when using server functions.
Unlike ServerFnErrorErr
, this does not implement std::error::Error
.
This means that other error types can easily be converted into it using the
?
operator.
Variants§
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.
Trait Implementations§
Source§impl Clone for ServerFnError
impl Clone for ServerFnError
Source§fn clone(&self) -> ServerFnError
fn clone(&self) -> ServerFnError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ServerFnError
impl Debug for ServerFnError
Source§impl<'de> Deserialize<'de> for ServerFnError
impl<'de> Deserialize<'de> for ServerFnError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServerFnError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServerFnError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Display for ServerFnError
impl Display for ServerFnError
Source§impl<E> From<E> for ServerFnErrorwhere
E: Error,
impl<E> From<E> for ServerFnErrorwhere
E: Error,
Source§fn from(e: E) -> ServerFnError
fn from(e: E) -> ServerFnError
Source§impl From<ServerFnError> for Error
impl From<ServerFnError> for Error
Source§fn from(e: ServerFnError) -> Error
fn from(e: ServerFnError) -> Error
Source§impl From<ServerFnError> for ServerFnErrorErr
impl From<ServerFnError> for ServerFnErrorErr
Source§fn from(value: ServerFnError) -> ServerFnErrorErr
fn from(value: ServerFnError) -> ServerFnErrorErr
Source§impl PartialEq for ServerFnError
impl PartialEq for ServerFnError
Source§impl Serialize for ServerFnError
impl Serialize for ServerFnError
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 StructuralPartialEq for ServerFnError
Auto Trait Implementations§
impl Freeze for ServerFnError
impl RefUnwindSafe for ServerFnError
impl Send for ServerFnError
impl Sync for ServerFnError
impl Unpin for ServerFnError
impl UnwindSafe for ServerFnError
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<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> 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