Enum styled::ServerFnError
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§
§impl Clone for ServerFnError
impl Clone for ServerFnError
§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 more§impl Debug for ServerFnError
impl Debug for ServerFnError
§impl<'de> Deserialize<'de> for ServerFnError
impl<'de> Deserialize<'de> for ServerFnError
§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>,
§impl Display for ServerFnError
impl Display for ServerFnError
§impl<E> From<E> for ServerFnErrorwhere
E: Error,
impl<E> From<E> for ServerFnErrorwhere E: Error,
§fn from(e: E) -> ServerFnError
fn from(e: E) -> ServerFnError
§impl From<ServerFnError> for Error
impl From<ServerFnError> for Error
§fn from(e: ServerFnError) -> Error
fn from(e: ServerFnError) -> Error
§impl From<ServerFnError> for ServerFnErrorErr
impl From<ServerFnError> for ServerFnErrorErr
§fn from(value: ServerFnError) -> ServerFnErrorErr
fn from(value: ServerFnError) -> ServerFnErrorErr
§impl PartialEq<ServerFnError> for ServerFnError
impl PartialEq<ServerFnError> for ServerFnError
§fn eq(&self, other: &ServerFnError) -> bool
fn eq(&self, other: &ServerFnError) -> bool
self
and other
values to be equal, and is used
by ==
.