#[non_exhaustive]pub enum LockProjectionError {
InvalidSelection,
Parse {
input: &'static str,
source: Error,
},
MissingPackages,
PackageSelection {
package: String,
matches: usize,
},
PreviousVersion {
package: String,
},
ChangedInputs,
}Expand description
Strict version projection failed without changing either input.
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.
InvalidSelection
No changes selected, or a name/version is empty or a name repeated.
Parse
One selected input is not valid TOML.
MissingPackages
The saved lockfile has no package array.
PackageSelection
A name must identify exactly one unsourced package.
Fields
PreviousVersion
The saved selected package does not have its expected prior version.
ChangedInputs
The after input differs from the exact permitted projection.
Trait Implementations§
Source§impl Debug for LockProjectionError
impl Debug for LockProjectionError
Source§impl Display for LockProjectionError
impl Display for LockProjectionError
Source§impl Error for LockProjectionError
impl Error for LockProjectionError
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()
Auto Trait Implementations§
impl Freeze for LockProjectionError
impl RefUnwindSafe for LockProjectionError
impl Send for LockProjectionError
impl Sync for LockProjectionError
impl Unpin for LockProjectionError
impl UnsafeUnpin for LockProjectionError
impl UnwindSafe for LockProjectionError
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