pub enum Invalid {
Name(String),
Release(String),
Path(String),
Integrity(String),
}Expand description
What is wrong with a text read as a pack’s name, a release, a path, a place or an integrity.
Variants§
Name(String)
It isn’t a pack’s name.
Release(String)
It isn’t a release: a pack’s name, @ and a version.
Path(String)
It isn’t a file’s path in a pack.
Integrity(String)
It isn’t an integrity.
Trait Implementations§
impl Eq for Invalid
Source§impl Error for Invalid
impl Error for Invalid
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()
impl StructuralPartialEq for Invalid
Auto Trait Implementations§
impl Forget for Invalid
impl Freeze for Invalid
impl Move for Invalid
impl RefUnwindSafe for Invalid
impl Send for Invalidwhere
RawVecInner: Send,
impl Sync for Invalidwhere
RawVecInner: Sync,
impl Unpin for Invalid
impl UnsafeUnpin for Invalid
impl UnwindSafe for Invalidwhere
RawVecInner: UnwindSafe,
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