pub enum IndexError {
Network(String),
Parse(String),
NotFound(String),
Io(Error),
Decompress(String),
NotImplemented(String),
}Expand description
Errors that can occur during index operations.
Variants§
Network(String)
Network request failed.
Parse(String)
Failed to parse response.
NotFound(String)
Package not found.
Io(Error)
IO error.
Decompress(String)
Decompression error.
NotImplemented(String)
Feature not implemented for this index.
Trait Implementations§
Source§impl Debug for IndexError
impl Debug for IndexError
Source§impl Display for IndexError
impl Display for IndexError
Source§impl Error for IndexError
impl Error for IndexError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 IndexError
impl From<Error> for IndexError
Source§impl From<Error> for IndexError
impl From<Error> for IndexError
Auto Trait Implementations§
impl Freeze for IndexError
impl !RefUnwindSafe for IndexError
impl Send for IndexError
impl Sync for IndexError
impl Unpin for IndexError
impl !UnwindSafe for IndexError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more