pub enum PersistenceError {
Show 22 variants
FailedToResolvePath {
path: String,
},
FailedToFindExpectedResource {
key: String,
},
InvalidPathToFile {
path: String,
},
InvalidFileContents {
note: String,
path: String,
},
FailedToWriteToFile {
filename: String,
position: u64,
},
DuplicateResourceKey {
key: String,
},
ResourceFormatInconsistent {
key: String,
},
FeatureNotYetImplemented {
description: String,
},
StdIoDirOps {
source: Error,
},
StdIoOpen {
source: Error,
},
StdIoSeek {
source: Error,
},
StdIoWrite {
source: Error,
},
StdIoRead {
source: Error,
},
BincodeSer {
source: Error,
},
BincodeDe {
source: Error,
},
ArkSer {
err: SerializationError,
},
ArkDe {
err: SerializationError,
},
OtherStore {
inner: Box<dyn Error + Send + Sync>,
},
OtherLoad {
inner: Box<dyn Error + Send + Sync>,
},
SyncPoison {
description: String,
},
TimedOut,
LocationOutOfDate {
stored_location: StorageLocation,
expected_location: StorageLocation,
},
}
Expand description
Error type for AtomicStore
Variants§
FailedToResolvePath
Failed to resolve path
FailedToFindExpectedResource
Failed to find resource
InvalidPathToFile
Path to file is invalid
InvalidFileContents
Path to file is invalid
FailedToWriteToFile
Failed to write to file
DuplicateResourceKey
Duplicate resource name
ResourceFormatInconsistent
Stored state mismatch with load specification
FeatureNotYetImplemented
Unimplemented feature
StdIoDirOps
std::io directory operations error
StdIoOpen
std::io open error
StdIoSeek
std::io seek error
StdIoWrite
std::io write error
StdIoRead
std::io read error
BincodeSer
Bincode serialization error
BincodeDe
Bincode deserialization error
ArkSer
ArkWorks serialization error
Fields
§
err: SerializationError
ArkDe
ArkWorks deserialization error
Fields
§
err: SerializationError
OtherStore
OtherLoad
SyncPoison
Placeholder for PoisonError specializations
TimedOut
AtomicStore::commit_version
took to long to wait for Log versions and timed out
LocationOutOfDate
Trait Implementations§
Source§impl Debug for PersistenceError
impl Debug for PersistenceError
Source§impl Display for PersistenceError
impl Display for PersistenceError
Source§impl Error for PersistenceError
impl Error for PersistenceError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for PersistenceError
impl ErrorCompat for PersistenceError
§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moreSource§impl<T> From<PoisonError<T>> for PersistenceError
impl<T> From<PoisonError<T>> for PersistenceError
Source§fn from(error: PoisonError<T>) -> Self
fn from(error: PoisonError<T>) -> Self
Converts to this type from the input type.
Source§impl<__T0> IntoError<PersistenceError> for ArkDeSnafu<__T0>
impl<__T0> IntoError<PersistenceError> for ArkDeSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl<__T0> IntoError<PersistenceError> for ArkSerSnafu<__T0>
impl<__T0> IntoError<PersistenceError> for ArkSerSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl IntoError<PersistenceError> for BincodeDeSnafuwhere
PersistenceError: Error + ErrorCompat,
impl IntoError<PersistenceError> for BincodeDeSnafuwhere
PersistenceError: Error + ErrorCompat,
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl IntoError<PersistenceError> for BincodeSerSnafuwhere
PersistenceError: Error + ErrorCompat,
impl IntoError<PersistenceError> for BincodeSerSnafuwhere
PersistenceError: Error + ErrorCompat,
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl<__T0> IntoError<PersistenceError> for DuplicateResourceKeySnafu<__T0>
impl<__T0> IntoError<PersistenceError> for DuplicateResourceKeySnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl<__T0> IntoError<PersistenceError> for FailedToFindExpectedResourceSnafu<__T0>
impl<__T0> IntoError<PersistenceError> for FailedToFindExpectedResourceSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl<__T0> IntoError<PersistenceError> for FailedToResolvePathSnafu<__T0>
impl<__T0> IntoError<PersistenceError> for FailedToResolvePathSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<PersistenceError> for FailedToWriteToFileSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<PersistenceError> for FailedToWriteToFileSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl<__T0> IntoError<PersistenceError> for FeatureNotYetImplementedSnafu<__T0>
impl<__T0> IntoError<PersistenceError> for FeatureNotYetImplementedSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<PersistenceError> for InvalidFileContentsSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<PersistenceError> for InvalidFileContentsSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl<__T0> IntoError<PersistenceError> for InvalidPathToFileSnafu<__T0>
impl<__T0> IntoError<PersistenceError> for InvalidPathToFileSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<PersistenceError> for LocationOutOfDateSnafu<__T0, __T1>where
PersistenceError: Error + ErrorCompat,
__T0: Into<StorageLocation>,
__T1: Into<StorageLocation>,
impl<__T0, __T1> IntoError<PersistenceError> for LocationOutOfDateSnafu<__T0, __T1>where
PersistenceError: Error + ErrorCompat,
__T0: Into<StorageLocation>,
__T1: Into<StorageLocation>,
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl<__T0> IntoError<PersistenceError> for OtherLoadSnafu<__T0>
impl<__T0> IntoError<PersistenceError> for OtherLoadSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl<__T0> IntoError<PersistenceError> for OtherStoreSnafu<__T0>
impl<__T0> IntoError<PersistenceError> for OtherStoreSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl<__T0> IntoError<PersistenceError> for ResourceFormatInconsistentSnafu<__T0>
impl<__T0> IntoError<PersistenceError> for ResourceFormatInconsistentSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl IntoError<PersistenceError> for StdIoDirOpsSnafuwhere
PersistenceError: Error + ErrorCompat,
impl IntoError<PersistenceError> for StdIoDirOpsSnafuwhere
PersistenceError: Error + ErrorCompat,
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl IntoError<PersistenceError> for StdIoOpenSnafuwhere
PersistenceError: Error + ErrorCompat,
impl IntoError<PersistenceError> for StdIoOpenSnafuwhere
PersistenceError: Error + ErrorCompat,
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl IntoError<PersistenceError> for StdIoReadSnafuwhere
PersistenceError: Error + ErrorCompat,
impl IntoError<PersistenceError> for StdIoReadSnafuwhere
PersistenceError: Error + ErrorCompat,
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl IntoError<PersistenceError> for StdIoSeekSnafuwhere
PersistenceError: Error + ErrorCompat,
impl IntoError<PersistenceError> for StdIoSeekSnafuwhere
PersistenceError: Error + ErrorCompat,
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl IntoError<PersistenceError> for StdIoWriteSnafuwhere
PersistenceError: Error + ErrorCompat,
impl IntoError<PersistenceError> for StdIoWriteSnafuwhere
PersistenceError: Error + ErrorCompat,
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl<__T0> IntoError<PersistenceError> for SyncPoisonSnafu<__T0>
impl<__T0> IntoError<PersistenceError> for SyncPoisonSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Source§impl IntoError<PersistenceError> for TimedOutSnafuwhere
PersistenceError: Error + ErrorCompat,
impl IntoError<PersistenceError> for TimedOutSnafuwhere
PersistenceError: Error + ErrorCompat,
Source§fn into_error(self, error: Self::Source) -> PersistenceError
fn into_error(self, error: Self::Source) -> PersistenceError
Combine the information to produce the error
Auto Trait Implementations§
impl Freeze for PersistenceError
impl !RefUnwindSafe for PersistenceError
impl Send for PersistenceError
impl Sync for PersistenceError
impl Unpin for PersistenceError
impl !UnwindSafe for PersistenceError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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