pub enum AmateRSError {
Show 15 variants
StorageIntegrity(ErrorContext),
FheComputation(ErrorContext),
ConsensusDivergence(ErrorContext),
CryptoError(ErrorContext),
NetworkError(ErrorContext),
ValidationError(ErrorContext),
IoError(ErrorContext),
SerializationError(ErrorContext),
ConfigError(ErrorContext),
ResourceExhausted(ErrorContext),
SystemInvariantBroken(ErrorContext),
FeatureNotEnabled(ErrorContext),
KeyNotFound(ErrorContext),
Serialization(ErrorContext),
Deserialization(ErrorContext),
}Expand description
Main error type for AmateRS operations
Variants§
StorageIntegrity(ErrorContext)
Storage integrity violation (corrupted data, failed checksums)
FheComputation(ErrorContext)
FHE computation failure (circuit execution, bootstrapping errors)
ConsensusDivergence(ErrorContext)
Consensus divergence detected (Raft log inconsistency)
CryptoError(ErrorContext)
Cryptographic operation error (key validation, encryption/decryption)
NetworkError(ErrorContext)
Network communication error (connection failures, timeouts)
ValidationError(ErrorContext)
Input validation error (invalid parameters, malformed queries)
IoError(ErrorContext)
I/O error (file system, disk operations)
SerializationError(ErrorContext)
Serialization/deserialization error
ConfigError(ErrorContext)
Configuration error (invalid settings, missing required config)
ResourceExhausted(ErrorContext)
Resource exhaustion (out of memory, disk space)
SystemInvariantBroken(ErrorContext)
System invariant broken (should never happen, indicates bug)
FeatureNotEnabled(ErrorContext)
Feature not enabled (compile-time feature flag disabled)
KeyNotFound(ErrorContext)
Key not found (missing cryptographic key)
Serialization(ErrorContext)
Serialization error (encoding failed)
Deserialization(ErrorContext)
Deserialization error (decoding failed)
Trait Implementations§
Source§impl Clone for AmateRSError
impl Clone for AmateRSError
Source§fn clone(&self) -> AmateRSError
fn clone(&self) -> AmateRSError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AmateRSError
impl Debug for AmateRSError
Source§impl Display for AmateRSError
impl Display for AmateRSError
Source§impl Error for AmateRSError
impl Error for AmateRSError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for AmateRSError
impl From<Error> for AmateRSError
Source§impl From<Error> for AmateRSError
impl From<Error> for AmateRSError
Auto Trait Implementations§
impl Freeze for AmateRSError
impl RefUnwindSafe for AmateRSError
impl Send for AmateRSError
impl Sync for AmateRSError
impl Unpin for AmateRSError
impl UnwindSafe for AmateRSError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.