pub enum ProjectRulesLoadError {
ProjectRulesRead {
path: PathBuf,
source: Error,
},
ProjectRulesPathDenied {
path: PathBuf,
reason: &'static str,
},
ProjectRulesNotRegularFile {
path: PathBuf,
},
ProjectRulesTooLarge {
path: PathBuf,
max_bytes: usize,
},
ProjectRulesInvalid {
path: PathBuf,
source: Box<ContextError>,
},
}Expand description
Errors raised while loading the root project rules.
Variants§
ProjectRulesRead
The root path or rules file could not be read.
ProjectRulesPathDenied
The rules path was intentionally rejected as unsafe.
ProjectRulesNotRegularFile
The rules path exists but is not a regular file.
ProjectRulesTooLarge
The rules file exceeds the bounded loader limit.
ProjectRulesInvalid
The rules content failed typed runtime validation.
Trait Implementations§
Source§impl Debug for ProjectRulesLoadError
impl Debug for ProjectRulesLoadError
Source§impl Display for ProjectRulesLoadError
impl Display for ProjectRulesLoadError
Source§impl Error for ProjectRulesLoadError
impl Error for ProjectRulesLoadError
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 From<ProjectRulesLoadError> for CodingRuntimeBuildError
impl From<ProjectRulesLoadError> for CodingRuntimeBuildError
Source§fn from(source: ProjectRulesLoadError) -> Self
fn from(source: ProjectRulesLoadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ProjectRulesLoadError
impl !UnwindSafe for ProjectRulesLoadError
impl Forget for ProjectRulesLoadError
impl Freeze for ProjectRulesLoadErrorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
&'static str: Freeze,
*const ContextError is !null: Freeze,
PhantomData<ContextError>: Freeze,
impl Move for ProjectRulesLoadError
impl Send for ProjectRulesLoadError
impl Sync for ProjectRulesLoadError
impl Unpin for ProjectRulesLoadError
impl UnsafeUnpin for ProjectRulesLoadErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
&'static str: UnsafeUnpin,
*const ContextError is !null: UnsafeUnpin,
PhantomData<ContextError>: 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