pub enum FixtureError {
InvalidPath(PathError),
Containment(ContainmentError),
TargetsRoot {
what: &'static str,
path: String,
},
InvalidMode {
path: String,
mode: u32,
},
Io {
action: &'static str,
path: PathBuf,
source: Error,
},
}Expand description
Why a fixture is invalid or could not be applied.
Variants§
InvalidPath(PathError)
A declared path is not a plain relative path.
Containment(ContainmentError)
The root is a symlink, or a declared path passes through one.
TargetsRoot
A declaration names the fixture’s own root.
Fields
InvalidMode
A declared mode is outside 0o0000..=0o7777.
Io
A filesystem operation failed.
Trait Implementations§
Source§impl Debug for FixtureError
impl Debug for FixtureError
Source§impl Display for FixtureError
impl Display for FixtureError
Source§impl Error for FixtureError
impl Error for FixtureError
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<ContainmentError> for FixtureError
impl From<ContainmentError> for FixtureError
Source§fn from(error: ContainmentError) -> Self
fn from(error: ContainmentError) -> Self
Converts to this type from the input type.
Source§impl From<FixtureError> for Failure
impl From<FixtureError> for Failure
Source§fn from(error: FixtureError) -> Self
fn from(error: FixtureError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for FixtureError
impl !UnwindSafe for FixtureError
impl Freeze for FixtureError
impl Send for FixtureError
impl Sync for FixtureError
impl Unpin for FixtureError
impl UnsafeUnpin for FixtureError
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