pub enum BundleError {
Root {
path: PathBuf,
source: Error,
},
NotDirectory(PathBuf),
TargetExists(PathBuf),
ReadManifest {
path: PathBuf,
source: Error,
},
ManifestJson(Error),
UnsupportedEntry {
path: PathBuf,
},
NotExecutable {
path: PathBuf,
},
MissingFile {
path: PathBuf,
},
ReadFile {
path: PathBuf,
source: Error,
},
Path(BundlePathError),
}Expand description
Why reading or writing a bundle failed.
Every variant is an I/O or layout fact. There is no “this bundle is not a
valid execution plan” family any more: the manifest either parses into a
validated phoxal_model::Robot or it does not, and the model owns that
judgment.
Variants§
Root
NotDirectory(PathBuf)
TargetExists(PathBuf)
ReadManifest
ManifestJson(Error)
UnsupportedEntry
NotExecutable
MissingFile
ReadFile
Path(BundlePathError)
Trait Implementations§
Source§impl Debug for BundleError
impl Debug for BundleError
Source§impl Display for BundleError
impl Display for BundleError
Source§impl Error for BundleError
impl Error for BundleError
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<BundlePathError> for BundleError
impl From<BundlePathError> for BundleError
Source§fn from(source: BundlePathError) -> Self
fn from(source: BundlePathError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for BundleError
impl !UnwindSafe for BundleError
impl Freeze for BundleError
impl Send for BundleError
impl Sync for BundleError
impl Unpin for BundleError
impl UnsafeUnpin for BundleError
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