Enum persy::PersyError
source · [−]#[non_exhaustive]
pub enum PersyError {
Show 25 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,
RecordToBig,
KeyOrValueTooBig,
VarIntError(ReadError),
}
Expand description
Enum of all possible errors from Persy
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Io
Fields
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
RecordToBig
KeyOrValueTooBig
VarIntError(ReadError)
Trait Implementations
sourceimpl Debug for PersyError
impl Debug for PersyError
sourceimpl Display for PersyError
impl Display for PersyError
sourceimpl Error for PersyError
impl Error for PersyError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<CreateError> for PersyError
impl From<CreateError> for PersyError
sourcefn from(e: CreateError) -> Self
fn from(e: CreateError) -> Self
Converts to this type from the input type.
sourceimpl From<CreateIndexError> for PersyError
impl From<CreateIndexError> for PersyError
sourcefn from(e: CreateIndexError) -> Self
fn from(e: CreateIndexError) -> Self
Converts to this type from the input type.
sourceimpl From<CreateSegmentError> for PersyError
impl From<CreateSegmentError> for PersyError
sourcefn from(e: CreateSegmentError) -> Self
fn from(e: CreateSegmentError) -> Self
Converts to this type from the input type.
sourceimpl From<DeleteError> for PersyError
impl From<DeleteError> for PersyError
sourcefn from(e: DeleteError) -> Self
fn from(e: DeleteError) -> Self
Converts to this type from the input type.
sourceimpl From<DropIndexError> for PersyError
impl From<DropIndexError> for PersyError
sourcefn from(e: DropIndexError) -> Self
fn from(e: DropIndexError) -> Self
Converts to this type from the input type.
sourceimpl From<DropSegmentError> for PersyError
impl From<DropSegmentError> for PersyError
sourcefn from(e: DropSegmentError) -> Self
fn from(e: DropSegmentError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for PersyError
impl From<Error> for PersyError
sourceimpl From<GenericError> for PersyError
impl From<GenericError> for PersyError
sourcefn from(e: GenericError) -> Self
fn from(e: GenericError) -> Self
Converts to this type from the input type.
sourceimpl From<IndexChangeError> for PersyError
impl From<IndexChangeError> for PersyError
sourcefn from(e: IndexChangeError) -> Self
fn from(e: IndexChangeError) -> Self
Converts to this type from the input type.
sourceimpl From<IndexError> for PersyError
impl From<IndexError> for PersyError
sourcefn from(e: IndexError) -> Self
fn from(e: IndexError) -> Self
Converts to this type from the input type.
sourceimpl From<IndexOpsError> for PersyError
impl From<IndexOpsError> for PersyError
sourcefn from(e: IndexOpsError) -> Self
fn from(e: IndexOpsError) -> Self
Converts to this type from the input type.
sourceimpl From<OpenError> for PersyError
impl From<OpenError> for PersyError
sourceimpl From<OpenMemoryError> for PersyError
impl From<OpenMemoryError> for PersyError
sourcefn from(e: OpenMemoryError) -> Self
fn from(e: OpenMemoryError) -> Self
Converts to this type from the input type.
sourceimpl From<PrepareError> for PersyError
impl From<PrepareError> for PersyError
sourcefn from(e: PrepareError) -> Self
fn from(e: PrepareError) -> Self
Converts to this type from the input type.
sourceimpl From<ReadError> for PersyError
impl From<ReadError> for PersyError
sourceimpl From<ReadError> for PersyError
impl From<ReadError> for PersyError
sourceimpl From<SegmentError> for PersyError
impl From<SegmentError> for PersyError
sourcefn from(e: SegmentError) -> Self
fn from(e: SegmentError) -> Self
Converts to this type from the input type.
sourceimpl From<UpdateError> for PersyError
impl From<UpdateError> for PersyError
sourcefn from(e: UpdateError) -> Self
fn from(e: UpdateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for PersyError
impl Send for PersyError
impl Sync for PersyError
impl Unpin for PersyError
impl !UnwindSafe for PersyError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more