pub enum RustiumError {
Show 28 variants
IO(Error),
NotFound(String),
PropertyNotFound(String),
Unexpected(Infallible),
SurrealError(Error),
SurrealDBError(Db),
StoreFailToCreate(String),
ModqlOperatorNotSupported(String),
CreateTableError(String),
UserNotAllowed(String),
Unresolved(String),
ParseObjectID(String),
AuthenticationError(AuthenticateError),
BadRequest(BadRequest),
RunSyncTask(JoinError),
HashPassword(Error),
AMPQError(Error),
FloatParse(ParseFloatError),
IntParse(ParseIntError),
UserAlreadyExists(String),
InvalidSignature(String),
InvalidSigner(String),
ToUTF8Error(FromUtf8Error),
RedisErr(RedisError),
LockError(String),
CustomError(String),
JWTError(Error),
ServiceInversionError(ValidationError),
}Variants§
IO(Error)
NotFound(String)
PropertyNotFound(String)
Unexpected(Infallible)
SurrealError(Error)
SurrealDBError(Db)
StoreFailToCreate(String)
ModqlOperatorNotSupported(String)
CreateTableError(String)
UserNotAllowed(String)
Unresolved(String)
ParseObjectID(String)
AuthenticationError(AuthenticateError)
BadRequest(BadRequest)
RunSyncTask(JoinError)
HashPassword(Error)
AMPQError(Error)
FloatParse(ParseFloatError)
IntParse(ParseIntError)
UserAlreadyExists(String)
InvalidSignature(String)
InvalidSigner(String)
ToUTF8Error(FromUtf8Error)
RedisErr(RedisError)
LockError(String)
CustomError(String)
JWTError(Error)
ServiceInversionError(ValidationError)
Implementations§
Source§impl RustiumError
impl RustiumError
pub fn bad_request() -> Self
pub fn not_found(resource_name: &str) -> Self
Trait Implementations§
Source§impl Debug for RustiumError
impl Debug for RustiumError
Source§impl Display for RustiumError
impl Display for RustiumError
Source§impl Error for RustiumError
impl Error for RustiumError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<AuthenticateError> for RustiumError
impl From<AuthenticateError> for RustiumError
Source§fn from(val: AuthenticateError) -> Self
fn from(val: AuthenticateError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for RustiumError
impl From<Error> for RustiumError
Source§impl From<Error> for RustiumError
impl From<Error> for RustiumError
Source§impl From<Error> for RustiumError
impl From<Error> for RustiumError
Source§impl From<Error> for RustiumError
impl From<Error> for RustiumError
Source§impl From<Error> for RustiumError
impl From<Error> for RustiumError
Source§impl From<Infallible> for RustiumError
impl From<Infallible> for RustiumError
Source§fn from(val: Infallible) -> Self
fn from(val: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<RedisError> for RustiumError
impl From<RedisError> for RustiumError
Source§fn from(val: RedisError) -> Self
fn from(val: RedisError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError> for RustiumError
impl From<ValidationError> for RustiumError
Source§fn from(val: ValidationError) -> Self
fn from(val: ValidationError) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for RustiumError
impl IntoResponse for RustiumError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for RustiumError
impl !RefUnwindSafe for RustiumError
impl Send for RustiumError
impl Sync for RustiumError
impl Unpin for RustiumError
impl !UnwindSafe for RustiumError
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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