pub enum StateFileError {
OutsideRepository {
file: RepoStateFile,
path: String,
},
BrokenSymlink {
file: RepoStateFile,
path: String,
},
Unreadable {
file: RepoStateFile,
path: String,
source: Error,
},
InvalidJson {
file: RepoStateFile,
path: String,
source: Error,
},
UnsupportedSchemaVersion {
file: RepoStateFile,
path: String,
found: u32,
expected: u32,
},
InvalidCeiling {
file: RepoStateFile,
path: String,
metric: String,
ceiling: f64,
},
InvalidMetricVersion {
file: RepoStateFile,
path: String,
metric: String,
},
UnknownDependencyMetric {
file: RepoStateFile,
path: String,
metric: String,
allowed: String,
},
Write {
file: RepoStateFile,
path: PathBuf,
source: Error,
},
}Variants§
OutsideRepository
BrokenSymlink
Unreadable
InvalidJson
UnsupportedSchemaVersion
InvalidCeiling
InvalidMetricVersion
UnknownDependencyMetric
Write
Implementations§
Source§impl StateFileError
impl StateFileError
pub fn state_file(&self) -> RepoStateFile
pub fn is_invalid_content(&self) -> bool
Trait Implementations§
Source§impl Debug for StateFileError
impl Debug for StateFileError
Source§impl Display for StateFileError
impl Display for StateFileError
Source§impl Error for StateFileError
impl Error for StateFileError
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 !RefUnwindSafe for StateFileError
impl !UnwindSafe for StateFileError
impl Forget for StateFileError
impl Freeze for StateFileErrorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
*const ErrorImpl is !null: Freeze,
PhantomData<ErrorImpl>: Freeze,
impl Move for StateFileError
impl Send for StateFileError
impl Sync for StateFileError
impl Unpin for StateFileError
impl UnsafeUnpin for StateFileErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
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