pub enum RunError {
Show 19 variants
Project(ProjectError),
Util(UtilError),
Context(ActionError),
TempDir(Error),
MkdirState(PathBuf, UtilError),
MkdirProjectSubState(PathBuf, UtilError),
MkdirProjectRunCi(UtilError),
CloudInit(CloudInitError),
DriveTooBig(u64, u64),
Qemu(QemuError),
RunFailed,
Copy(PathBuf, PathBuf, Error),
Plan(PlanError),
Git(GitError),
VDrive(VirtualDriveError),
NoRunCi,
RunLogCreate(RunLogError),
NoPath,
NotOnPath(PathBuf),
}Expand description
Errors from exeucting a CI run.
Variants§
Project(ProjectError)
Forwarded from the project module.
Util(UtilError)
Forwarded from the util module.
Context(ActionError)
Can’t create a context.
TempDir(Error)
Can’t create a temporary directory.
MkdirState(PathBuf, UtilError)
Can’t create state directory.
MkdirProjectSubState(PathBuf, UtilError)
Can’t create project directory.
MkdirProjectRunCi(UtilError)
Can’t create temporary directory.
CloudInit(CloudInitError)
Can’t create cloud-init ISO file.
DriveTooBig(u64, u64)
The created virtual drive is too big.
Qemu(QemuError)
Forwarded from the qemu module.
RunFailed
CI run failed.
Copy(PathBuf, PathBuf, Error)
Can’t copy file.
Plan(PlanError)
Forwarded from plan module.
Git(GitError)
Forwarded from git module.
VDrive(VirtualDriveError)
Forwarded from vdrive module.
NoRunCi
No executor in config.
RunLogCreate(RunLogError)
Can’t open run log.
NoPath
No PATH.
NotOnPath(PathBuf)
No binary on PATH.
Trait Implementations§
Source§impl Error for RunError
impl Error for RunError
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<ProjectError> for RunError
impl From<ProjectError> for RunError
Source§fn from(source: ProjectError) -> Self
fn from(source: ProjectError) -> Self
Converts to this type from the input type.
Source§impl From<VirtualDriveError> for RunError
impl From<VirtualDriveError> for RunError
Source§fn from(source: VirtualDriveError) -> Self
fn from(source: VirtualDriveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RunError
impl !RefUnwindSafe for RunError
impl Send for RunError
impl Sync for RunError
impl Unpin for RunError
impl UnsafeUnpin for RunError
impl !UnwindSafe for RunError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.