Enum persy::PersyError [−][src]
#[non_exhaustive]
pub enum PersyError {
Show 22 variants
Io {
from: Error,
},
DecodingUtf8(Utf8Error),
DecodingDataEncoding(DecodeError),
VersionNotLastest,
RecordNotFound(PersyId),
SegmentNotFound,
SegmentAlreadyExists,
IndexAlreadyExists,
CannotDropSegmentCreatedInTx,
CannotDropIndexCreatedInTx,
Lock,
IndexNotFound,
IndexTypeMismatch(Cow<'static, str>),
IndexDuplicateKey(String, String),
TransactionTimeout,
InvalidId(String),
InvalidPersyId(RecRef),
InitError(String),
AlreadyInUse(Error),
NotExists,
AlreadyExists,
NotPersyFile,
}
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
Fields
from: Error
DecodingUtf8(Utf8Error)
Tuple Fields
0: Utf8Error
DecodingDataEncoding(DecodeError)
Tuple Fields
0: DecodeError
VersionNotLastest
RecordNotFound(PersyId)
Tuple Fields
0: PersyId
SegmentNotFound
SegmentAlreadyExists
IndexAlreadyExists
CannotDropSegmentCreatedInTx
CannotDropIndexCreatedInTx
Lock
IndexNotFound
IndexTypeMismatch(Cow<'static, str>)
IndexDuplicateKey(String, String)
TransactionTimeout
InvalidId(String)
Tuple Fields
0: String
InvalidPersyId(RecRef)
InitError(String)
Tuple Fields
0: String
AlreadyInUse(Error)
Tuple Fields
0: Error
NotExists
AlreadyExists
NotPersyFile
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.