Enum persy::SegmentError
source · #[non_exhaustive]pub enum SegmentError {
Generic(GenericError),
SegmentNotFound,
}
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.
Generic(GenericError)
SegmentNotFound
Trait Implementations§
source§impl Debug for SegmentError
impl Debug for SegmentError
source§impl Display for SegmentError
impl Display for SegmentError
source§impl Error for SegmentError
impl Error for SegmentError
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<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<SegmentError> for DeleteError
impl From<SegmentError> for DeleteError
source§fn from(e: SegmentError) -> Self
fn from(e: SegmentError) -> Self
Converts to this type from the input type.
source§impl From<SegmentError> for DropSegmentError
impl From<SegmentError> for DropSegmentError
source§fn from(e: SegmentError) -> Self
fn from(e: SegmentError) -> Self
Converts to this type from the input type.
source§impl From<SegmentError> for IndexChangeError
impl From<SegmentError> for IndexChangeError
source§fn from(e: SegmentError) -> Self
fn from(e: SegmentError) -> Self
Converts to this type from the input type.
source§impl From<SegmentError> for IndexError
impl From<SegmentError> for IndexError
source§fn from(e: SegmentError) -> Self
fn from(e: SegmentError) -> Self
Converts to this type from the input type.
source§impl From<SegmentError> for InsertError
impl From<SegmentError> for InsertError
source§fn from(e: SegmentError) -> Self
fn from(e: SegmentError) -> Self
Converts to this type from the input type.
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<SegmentError> for ReadError
impl From<SegmentError> for ReadError
source§fn from(e: SegmentError) -> Self
fn from(e: SegmentError) -> Self
Converts to this type from the input type.
source§impl From<SegmentError> for UpdateError
impl From<SegmentError> for UpdateError
source§fn from(e: SegmentError) -> Self
fn from(e: SegmentError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SegmentError
impl Send for SegmentError
impl Sync for SegmentError
impl Unpin for SegmentError
impl !UnwindSafe for SegmentError
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