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.
Fields of Io
from: Error
Tuple Fields of DecodingUtf8
0: Utf8Error
Tuple Fields of DecodingDataEncoding
0: DecodeError
Tuple Fields of RecordNotFound
0: PersyId
Tuple Fields of InvalidId
0: String
Tuple Fields of InitError
0: String
Tuple Fields of AlreadyInUse
0: Error
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.