Enum grafbase_local_common::errors::CommonError
source · [−]pub enum CommonError {
ReadCurrentDirectory,
FindGrafbaseDirectory,
}Variants
ReadCurrentDirectory
returned if the current directory path cannot be read
FindGrafbaseDirectory
returned if the grafbase directory cannot be found
Trait Implementations
sourceimpl Debug for CommonError
impl Debug for CommonError
sourceimpl Display for CommonError
impl Display for CommonError
sourceimpl Error for CommonError
impl Error for CommonError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl ToExitCode for CommonError
impl ToExitCode for CommonError
sourcefn to_exit_code(&self) -> i32
fn to_exit_code(&self) -> i32
returns the appropriate exit code for a given error
Auto Trait Implementations
impl RefUnwindSafe for CommonError
impl Send for CommonError
impl Sync for CommonError
impl Unpin for CommonError
impl UnwindSafe for CommonError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more