pub enum SpaceapiServerError {
Redis(RedisError),
R2d2(Error),
IoError(Error),
Message(Cow<'static, str>),
}
Expand description
A SpaceapiServerError
wraps general problems that can occur in the SpaceAPI server.
Variants§
Redis(RedisError)
A problem with redis occurred.
R2d2(Error)
A problem with the redis connection pool occurred.
IoError(Error)
An I/O error occurred.
Message(Cow<'static, str>)
Another error happened.
Trait Implementations§
source§impl Debug for SpaceapiServerError
impl Debug for SpaceapiServerError
source§impl Display for SpaceapiServerError
impl Display for SpaceapiServerError
source§impl Error for SpaceapiServerError
impl Error for SpaceapiServerError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<&'static str> for SpaceapiServerError
impl From<&'static str> for SpaceapiServerError
source§fn from(s: &'static str) -> SpaceapiServerError
fn from(s: &'static str) -> SpaceapiServerError
Converts to this type from the input type.
source§impl From<Error> for SpaceapiServerError
impl From<Error> for SpaceapiServerError
source§fn from(err: R2d2Error) -> SpaceapiServerError
fn from(err: R2d2Error) -> SpaceapiServerError
Converts to this type from the input type.
source§impl From<Error> for SpaceapiServerError
impl From<Error> for SpaceapiServerError
source§fn from(err: Error) -> SpaceapiServerError
fn from(err: Error) -> SpaceapiServerError
Converts to this type from the input type.
source§impl From<RedisError> for SpaceapiServerError
impl From<RedisError> for SpaceapiServerError
source§fn from(err: RedisError) -> SpaceapiServerError
fn from(err: RedisError) -> SpaceapiServerError
Converts to this type from the input type.
source§impl From<String> for SpaceapiServerError
impl From<String> for SpaceapiServerError
source§fn from(s: String) -> SpaceapiServerError
fn from(s: String) -> SpaceapiServerError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SpaceapiServerError
impl Send for SpaceapiServerError
impl Sync for SpaceapiServerError
impl Unpin for SpaceapiServerError
impl !UnwindSafe for SpaceapiServerError
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
§impl<T> PersistentInto<Arc<Mutex<T>, Global>> for T
impl<T> PersistentInto<Arc<Mutex<T>, Global>> for T
§fn persistent_into(self) -> Arc<Mutex<T>, Global>
fn persistent_into(self) -> Arc<Mutex<T>, Global>
Convert
self
into a value of type T
.§impl<T> PersistentInto<Arc<RwLock<T>, Global>> for T
impl<T> PersistentInto<Arc<RwLock<T>, Global>> for T
§fn persistent_into(self) -> Arc<RwLock<T>, Global>
fn persistent_into(self) -> Arc<RwLock<T>, Global>
Convert
self
into a value of type T
.§impl<T> PersistentInto<Arc<T, Global>> for T
impl<T> PersistentInto<Arc<T, Global>> for T
§fn persistent_into(self) -> Arc<T, Global>
fn persistent_into(self) -> Arc<T, Global>
Convert
self
into a value of type T
.§impl<T> PersistentInto<T> for T
impl<T> PersistentInto<T> for T
§fn persistent_into(self) -> T
fn persistent_into(self) -> T
Convert
self
into a value of type T
.