Enum persy::PersyError
source · #[non_exhaustive]pub enum PersyError {
Show 25 variants
Io {
from: Error,
},
DecodingUtf8(Utf8Error),
DecodingDataEncoding(DecodeError),
VersionNotLatest,
RecordNotFound(PersyId),
SegmentNotFound,
SegmentAlreadyExists,
IndexAlreadyExists,
CannotDropSegmentCreatedInTx,
CannotDropIndexCreatedInTx,
IndexNotFound,
IndexTypeMismatch(Cow<'static, str>),
IndexDuplicateKey(String, String),
ReachedLimitOfRetry,
TransactionTimeout,
InvalidId(String),
InvalidPersyId(RecRef),
InitError(String),
AlreadyInUse(Error),
NotExists,
AlreadyExists,
NotPersyFile,
RecordToBig,
KeyOrValueTooBig,
VarIntError(ReadError),
}
Expand description
Enum of all possible errors from Persy
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.
Io
DecodingUtf8(Utf8Error)
DecodingDataEncoding(DecodeError)
VersionNotLatest
RecordNotFound(PersyId)
SegmentNotFound
SegmentAlreadyExists
IndexAlreadyExists
CannotDropSegmentCreatedInTx
CannotDropIndexCreatedInTx
IndexNotFound
IndexTypeMismatch(Cow<'static, str>)
IndexDuplicateKey(String, String)
ReachedLimitOfRetry
TransactionTimeout
InvalidId(String)
InvalidPersyId(RecRef)
InitError(String)
AlreadyInUse(Error)
NotExists
AlreadyExists
NotPersyFile
RecordToBig
KeyOrValueTooBig
VarIntError(ReadError)
Trait Implementations§
source§impl Debug for PersyError
impl Debug for PersyError
source§impl Display for PersyError
impl Display for PersyError
source§impl Error for PersyError
impl Error for PersyError
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<BeginTransactionError> for PersyError
impl From<BeginTransactionError> for PersyError
source§fn from(e: BeginTransactionError) -> Self
fn from(e: BeginTransactionError) -> Self
Converts to this type from the input type.
source§impl From<CreateError> for PersyError
impl From<CreateError> for PersyError
source§fn from(e: CreateError) -> Self
fn from(e: CreateError) -> Self
Converts to this type from the input type.
source§impl From<CreateIndexError> for PersyError
impl From<CreateIndexError> for PersyError
source§fn from(e: CreateIndexError) -> Self
fn from(e: CreateIndexError) -> Self
Converts to this type from the input type.
source§impl From<CreateSegmentError> for PersyError
impl From<CreateSegmentError> for PersyError
source§fn from(e: CreateSegmentError) -> Self
fn from(e: CreateSegmentError) -> Self
Converts to this type from the input type.
source§impl From<DeleteError> for PersyError
impl From<DeleteError> for PersyError
source§fn from(e: DeleteError) -> Self
fn from(e: DeleteError) -> Self
Converts to this type from the input type.
source§impl From<DropIndexError> for PersyError
impl From<DropIndexError> for PersyError
source§fn from(e: DropIndexError) -> Self
fn from(e: DropIndexError) -> Self
Converts to this type from the input type.
source§impl From<DropSegmentError> for PersyError
impl From<DropSegmentError> for PersyError
source§fn from(e: DropSegmentError) -> Self
fn from(e: DropSegmentError) -> Self
Converts to this type from the input type.
source§impl From<Error> for PersyError
impl From<Error> for PersyError
source§impl From<GenericError> for PersyError
impl From<GenericError> for PersyError
source§fn from(e: GenericError) -> Self
fn from(e: GenericError) -> Self
Converts to this type from the input type.
source§impl From<IndexChangeError> for PersyError
impl From<IndexChangeError> for PersyError
source§fn from(e: IndexChangeError) -> Self
fn from(e: IndexChangeError) -> Self
Converts to this type from the input type.
source§impl From<IndexError> for PersyError
impl From<IndexError> for PersyError
source§fn from(e: IndexError) -> Self
fn from(e: IndexError) -> Self
Converts to this type from the input type.
source§impl From<IndexOpsError> for PersyError
impl From<IndexOpsError> for PersyError
source§fn from(e: IndexOpsError) -> Self
fn from(e: IndexOpsError) -> Self
Converts to this type from the input type.
source§impl From<IndexPutError> for PersyError
impl From<IndexPutError> for PersyError
source§fn from(e: IndexPutError) -> Self
fn from(e: IndexPutError) -> Self
Converts to this type from the input type.
source§impl From<InsertError> for PersyError
impl From<InsertError> for PersyError
source§fn from(e: InsertError) -> Self
fn from(e: InsertError) -> Self
Converts to this type from the input type.
source§impl From<OpenError> for PersyError
impl From<OpenError> for PersyError
source§impl From<OpenMemoryError> for PersyError
impl From<OpenMemoryError> for PersyError
source§fn from(e: OpenMemoryError) -> Self
fn from(e: OpenMemoryError) -> 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 PersyError
impl From<ReadError> for PersyError
source§impl From<ReadError> for PersyError
impl From<ReadError> for PersyError
source§impl From<SegmentError> for PersyError
impl From<SegmentError> for PersyError
source§fn from(e: SegmentError) -> Self
fn from(e: SegmentError) -> Self
Converts to this type from the input type.
source§impl From<UpdateError> for PersyError
impl From<UpdateError> for PersyError
source§fn from(e: UpdateError) -> Self
fn from(e: UpdateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PersyError
impl !RefUnwindSafe for PersyError
impl Send for PersyError
impl Sync for PersyError
impl Unpin for PersyError
impl !UnwindSafe for PersyError
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