pub enum PipTextError {
Empty,
ContainsWhitespace,
InvalidUrl,
Unknown,
}Expand description
Error returned when pip metadata text is invalid.
Variants§
Trait Implementations§
Source§impl Clone for PipTextError
impl Clone for PipTextError
Source§fn clone(&self) -> PipTextError
fn clone(&self) -> PipTextError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PipTextError
impl Debug for PipTextError
Source§impl Display for PipTextError
impl Display for PipTextError
Source§impl Error for PipTextError
impl Error for PipTextError
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 PartialEq for PipTextError
impl PartialEq for PipTextError
Source§fn eq(&self, other: &PipTextError) -> bool
fn eq(&self, other: &PipTextError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PipTextError
impl Eq for PipTextError
impl StructuralPartialEq for PipTextError
Auto Trait Implementations§
impl Freeze for PipTextError
impl RefUnwindSafe for PipTextError
impl Send for PipTextError
impl Sync for PipTextError
impl Unpin for PipTextError
impl UnsafeUnpin for PipTextError
impl UnwindSafe for PipTextError
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