pub enum Error {
NoProject(PathBuf),
NotFound(PathBuf),
Read {
path: PathBuf,
source: Error,
},
Write {
path: PathBuf,
source: Error,
},
ParseJson {
path: PathBuf,
source: Error,
},
ParseToml {
path: PathBuf,
source: Error,
},
Walk {
path: PathBuf,
source: Error,
},
Glob {
pattern: String,
source: Error,
},
Rojo(Error),
RojoFailed {
code: i32,
stderr: String,
},
}Expand description
Everything that can go wrong before a rule runs.
Variants§
NoProject(PathBuf)
NotFound(PathBuf)
Read
Write
ParseJson
ParseToml
Walk
Glob
Rojo(Error)
RojoFailed
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !UnwindSafe for Error
impl Forget for Error
impl Freeze for Errorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
*const ErrorImpl is !null: Freeze,
PhantomData<ErrorImpl>: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Error>: Freeze,
*const Error is !null: Freeze,
impl Move for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Errorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Error>: UnsafeUnpin,
*const Error is !null: 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