pub enum StorageError {
IoError(Error),
SerdeJsonError(Error),
RonError(Error),
RonSpannedError(SpannedError),
SledError(Error),
BincodeSeError(EncodeError),
BincodeDeError(DecodeError),
InitError(String),
ParseIntError(ParseIntError),
Utf8Error(Utf8Error),
PoisonError(String),
}
Expand description
Error related to storing and reading elements
Variants§
IoError(Error)
Error related to File Io operations.
SerdeJsonError(Error)
Occurs during parsing of json structs.
RonError(Error)
Generic error related to serialization in the ron crate.
RonSpannedError(SpannedError)
Generic error related to deserialization in the ron crate.
SledError(Error)
Generic error related to the [sled] database.
BincodeSeError(EncodeError)
Generic serialization error thrown by the bincode library.
BincodeDeError(DecodeError)
Generic deserialization error thrown by the bincode library.
InitError(String)
Initialization error mainly used for initialization of databases such as [sled].
ParseIntError(ParseIntError)
Error when parsing file/folder names.
Utf8Error(Utf8Error)
Generic Utf8 error.
PoisonError(String)
Error during locking of Mutex
Trait Implementations§
Source§impl Debug for StorageError
impl Debug for StorageError
Source§impl Display for StorageError
impl Display for StorageError
Source§impl Error for StorageError
impl Error for StorageError
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<DecodeError> for StorageError
impl From<DecodeError> for StorageError
Source§fn from(err: DecodeError) -> Self
fn from(err: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<EncodeError> for StorageError
impl From<EncodeError> for StorageError
Source§fn from(err: EncodeError) -> Self
fn from(err: EncodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for StorageError
impl From<Error> for StorageError
Source§impl From<Error> for StorageError
impl From<Error> for StorageError
Source§impl From<Error> for StorageError
impl From<Error> for StorageError
Source§impl From<Error> for StorageError
impl From<Error> for StorageError
Source§impl From<ParseIntError> for StorageError
impl From<ParseIntError> for StorageError
Source§fn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl<T> From<PoisonError<T>> for StorageError
impl<T> From<PoisonError<T>> for StorageError
Source§fn from(err: PoisonError<T>) -> Self
fn from(err: PoisonError<T>) -> Self
Converts to this type from the input type.
Source§impl From<SpannedError> for StorageError
impl From<SpannedError> for StorageError
Source§fn from(err: SpannedError) -> Self
fn from(err: SpannedError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for SimulationError
Available on crate feature cpu_os_threads
only.
impl From<StorageError> for SimulationError
Available on crate feature
cpu_os_threads
only.Source§fn from(err: StorageError) -> Self
fn from(err: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for SimulationError
Available on crate feature chili
only.
impl From<StorageError> for SimulationError
Available on crate feature
chili
only.Source§fn from(err: StorageError) -> Self
fn from(err: StorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StorageError
impl !RefUnwindSafe for StorageError
impl Send for StorageError
impl Sync for StorageError
impl Unpin for StorageError
impl !UnwindSafe for StorageError
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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