Enum StorageError
pub enum StorageError {
IoError(Error),
SerdeJsonError(Error),
RonError(Error),
RonSpannedError(SpannedError),
SledError(Error),
BincodeSeError(EncodeError),
BincodeDeError(DecodeError),
InitError(String),
ParseIntError(ParseIntError),
Utf8Error(Utf8Error),
}
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.
Trait Implementations§
§impl Debug for StorageError
impl Debug for StorageError
§impl Display for StorageError
impl Display for StorageError
§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()
§impl From<DecodeError> for StorageError
impl From<DecodeError> for StorageError
§fn from(err: DecodeError) -> StorageError
fn from(err: DecodeError) -> StorageError
Converts to this type from the input type.
§impl From<EncodeError> for StorageError
impl From<EncodeError> for StorageError
§fn from(err: EncodeError) -> StorageError
fn from(err: EncodeError) -> StorageError
Converts to this type from the input type.
§impl From<Error> for StorageError
impl From<Error> for StorageError
§fn from(err: Error) -> StorageError
fn from(err: Error) -> StorageError
Converts to this type from the input type.
§impl From<Error> for StorageError
impl From<Error> for StorageError
§fn from(err: Error) -> StorageError
fn from(err: Error) -> StorageError
Converts to this type from the input type.
§impl From<Error> for StorageError
impl From<Error> for StorageError
§fn from(err: Error) -> StorageError
fn from(err: Error) -> StorageError
Converts to this type from the input type.
§impl From<Error> for StorageError
impl From<Error> for StorageError
§fn from(err: Error) -> StorageError
fn from(err: Error) -> StorageError
Converts to this type from the input type.
§impl From<ParseIntError> for StorageError
impl From<ParseIntError> for StorageError
§fn from(err: ParseIntError) -> StorageError
fn from(err: ParseIntError) -> StorageError
Converts to this type from the input type.
§impl From<SpannedError> for StorageError
impl From<SpannedError> for StorageError
§fn from(err: SpannedError) -> StorageError
fn from(err: SpannedError) -> StorageError
Converts to this type from the input type.
§impl From<StorageError> for SimulationError
impl From<StorageError> for SimulationError
§fn from(err: StorageError) -> SimulationError
fn from(err: StorageError) -> SimulationError
Converts to this type from the input type.
§impl From<StorageError> for SimulationError
impl From<StorageError> for SimulationError
§fn from(err: StorageError) -> SimulationError
fn from(err: StorageError) -> SimulationError
Converts to this type from the input type.
§impl From<Utf8Error> for StorageError
impl From<Utf8Error> for StorageError
§fn from(err: Utf8Error) -> StorageError
fn from(err: Utf8Error) -> StorageError
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.