#[non_exhaustive]pub enum ExternalLockError {
LimitExceeded {
input: &'static str,
limit: usize,
},
Utf8 {
input: &'static str,
source: Utf8Error,
},
Parse {
input: &'static str,
source: Error,
},
MissingPackages {
input: &'static str,
},
InvalidPackage {
input: &'static str,
index: usize,
reason: &'static str,
},
DuplicateSelection {
input: &'static str,
package: String,
version: String,
},
SelectionChanged {
package: String,
version: String,
},
}Expand description
External lockfile comparison 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.
LimitExceeded
An input exceeds the caller’s per-document byte allowance.
Fields
Utf8
An input is not UTF-8.
Parse
An input is not valid TOML.
MissingPackages
An input has no package array.
InvalidPackage
A package record or external identity field is malformed.
Fields
DuplicateSelection
An external name/version/source identity appears more than once.
Fields
SelectionChanged
A candidate identity or checksum does not match the original.
Trait Implementations§
Source§impl Debug for ExternalLockError
impl Debug for ExternalLockError
Source§impl Display for ExternalLockError
impl Display for ExternalLockError
Source§impl Error for ExternalLockError
impl Error for ExternalLockError
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 ExternalLockError
impl RefUnwindSafe for ExternalLockError
impl Send for ExternalLockError
impl Sync for ExternalLockError
impl Unpin for ExternalLockError
impl UnsafeUnpin for ExternalLockError
impl UnwindSafe for ExternalLockError
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