pub enum SentinelError {
UnsupportedSchemaVersion {
recorded: u32,
},
EmptyField {
field: &'static str,
},
DependencyWithoutVersionOrCommit {
name: String,
},
NoFiles,
InvalidEntry {
path: String,
},
UnsupportedRootFile {
path: String,
},
UnsupportedRootDirectory {
path: String,
},
}Expand description
Why a sentinel is not a marker for a generated plugin output directory.
Each variant names the value that failed, so a caller reports which entry is wrong without repeating the rule to find it.
Variants§
UnsupportedSchemaVersion
EmptyField
DependencyWithoutVersionOrCommit
NoFiles
InvalidEntry
UnsupportedRootFile
UnsupportedRootDirectory
Trait Implementations§
Source§impl Clone for SentinelError
impl Clone for SentinelError
Source§impl Debug for SentinelError
impl Debug for SentinelError
Source§impl Display for SentinelError
impl Display for SentinelError
impl Eq for SentinelError
Source§impl Error for SentinelError
impl Error for SentinelError
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 SentinelError
impl PartialEq for SentinelError
impl StructuralPartialEq for SentinelError
Auto Trait Implementations§
impl Forget for SentinelError
impl Freeze for SentinelError
impl RefUnwindSafe for SentinelError
impl Send for SentinelError
impl Sync for SentinelError
impl Unpin for SentinelError
impl UnsafeUnpin for SentinelError
impl UnwindSafe for SentinelError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.