Enum persy::GenericError
source · #[non_exhaustive]pub enum GenericError {
Io {
from: Error,
},
DecodingUtf8(Utf8Error),
VarIntError(ReadError),
}
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.
Trait Implementations§
source§impl Debug for GenericError
impl Debug for GenericError
source§impl Display for GenericError
impl Display for GenericError
source§impl Error for GenericError
impl Error for GenericError
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<Error> for GenericError
impl From<Error> for GenericError
source§impl From<GenericError> for BeginTransactionError
impl From<GenericError> for BeginTransactionError
source§fn from(source: GenericError) -> Self
fn from(source: GenericError) -> Self
Converts to this type from the input type.
source§impl From<GenericError> for CreateError
impl From<GenericError> for CreateError
source§fn from(source: GenericError) -> Self
fn from(source: GenericError) -> Self
Converts to this type from the input type.
source§impl From<GenericError> for CreateIndexError
impl From<GenericError> for CreateIndexError
source§fn from(source: GenericError) -> Self
fn from(source: GenericError) -> Self
Converts to this type from the input type.
source§impl From<GenericError> for CreateSegmentError
impl From<GenericError> for CreateSegmentError
source§fn from(source: GenericError) -> Self
fn from(source: GenericError) -> Self
Converts to this type from the input type.
source§impl From<GenericError> for DeleteError
impl From<GenericError> for DeleteError
source§fn from(source: GenericError) -> Self
fn from(source: GenericError) -> Self
Converts to this type from the input type.
source§impl From<GenericError> for DropIndexError
impl From<GenericError> for DropIndexError
source§fn from(source: GenericError) -> Self
fn from(source: GenericError) -> Self
Converts to this type from the input type.
source§impl From<GenericError> for DropSegmentError
impl From<GenericError> for DropSegmentError
source§fn from(source: GenericError) -> Self
fn from(source: GenericError) -> Self
Converts to this type from the input type.
source§impl From<GenericError> for IndexChangeError
impl From<GenericError> for IndexChangeError
source§fn from(source: GenericError) -> Self
fn from(source: GenericError) -> Self
Converts to this type from the input type.
source§impl From<GenericError> for IndexError
impl From<GenericError> for IndexError
source§fn from(source: GenericError) -> Self
fn from(source: GenericError) -> Self
Converts to this type from the input type.
source§impl From<GenericError> for IndexOpsError
impl From<GenericError> for IndexOpsError
source§fn from(source: GenericError) -> Self
fn from(source: GenericError) -> Self
Converts to this type from the input type.
source§impl From<GenericError> for IndexPutError
impl From<GenericError> for IndexPutError
source§fn from(source: GenericError) -> Self
fn from(source: GenericError) -> Self
Converts to this type from the input type.
source§impl From<GenericError> for InsertError
impl From<GenericError> for InsertError
source§fn from(source: GenericError) -> Self
fn from(source: GenericError) -> Self
Converts to this type from the input type.
source§impl From<GenericError> for OpenError
impl From<GenericError> for OpenError
source§fn from(source: GenericError) -> Self
fn from(source: GenericError) -> Self
Converts to this type from the input type.
source§impl From<GenericError> for OpenMemoryError
impl From<GenericError> for OpenMemoryError
source§fn from(source: GenericError) -> Self
fn from(source: GenericError) -> Self
Converts to this type from the input type.
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<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<GenericError> for ReadError
impl From<GenericError> for ReadError
source§fn from(source: GenericError) -> Self
fn from(source: GenericError) -> Self
Converts to this type from the input type.
source§impl From<GenericError> for SegmentError
impl From<GenericError> for SegmentError
source§fn from(source: GenericError) -> Self
fn from(source: GenericError) -> Self
Converts to this type from the input type.
source§impl From<GenericError> for UpdateError
impl From<GenericError> for UpdateError
source§fn from(source: GenericError) -> Self
fn from(source: GenericError) -> Self
Converts to this type from the input type.
source§impl From<ReadError> for GenericError
impl From<ReadError> for GenericError
Auto Trait Implementations§
impl !RefUnwindSafe for GenericError
impl Send for GenericError
impl Sync for GenericError
impl Unpin for GenericError
impl !UnwindSafe for GenericError
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