Enum persy::PrepareError
source · #[non_exhaustive]pub enum PrepareError {
Generic(GenericError),
IndexNotFound,
SegmentNotFound,
SegmentAlreadyExists,
IndexAlreadyExists,
TransactionTimeout,
RecordNotFound(PersyId),
VersionNotLatest,
ReachedLimitOfRetry,
IndexDuplicateKey(String, String),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Generic(GenericError)
IndexNotFound
SegmentNotFound
SegmentAlreadyExists
IndexAlreadyExists
TransactionTimeout
RecordNotFound(PersyId)
VersionNotLatest
ReachedLimitOfRetry
IndexDuplicateKey(String, String)
Trait Implementations§
source§impl Debug for PrepareError
impl Debug for PrepareError
source§impl Display for PrepareError
impl Display for PrepareError
source§impl Error for PrepareError
impl Error for PrepareError
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<GenericError> for PrepareError
impl From<GenericError> for PrepareError
source§fn from(source: GenericError) -> Self
fn from(source: GenericError) -> Self
Converts to this type from the input type.
source§impl From<IndexChangeError> for PrepareError
impl From<IndexChangeError> for PrepareError
source§fn from(e: IndexChangeError) -> Self
fn from(e: IndexChangeError) -> Self
Converts to this type from the input type.
source§impl From<PrepareError> for PersyError
impl From<PrepareError> for PersyError
source§fn from(e: PrepareError) -> Self
fn from(e: PrepareError) -> Self
Converts to this type from the input type.
source§impl From<ReadError> for PrepareError
impl From<ReadError> for PrepareError
source§fn from(read: ReadError) -> PrepareError
fn from(read: ReadError) -> PrepareError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrepareError
impl !RefUnwindSafe for PrepareError
impl Send for PrepareError
impl Sync for PrepareError
impl Unpin for PrepareError
impl !UnwindSafe for PrepareError
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