pub enum InstanceError {
Store(Error),
Engine(Error),
Module {
path: String,
reason: String,
},
Plan(PlanError),
Render(RenderError),
LaunchEnv(LaunchEnvError),
Secret(SecretError),
Source(SourceError),
LocalCredential(String),
PortsBusy(Vec<BusyPort>),
RevisionRunning {
revision: u32,
running: InstanceId,
},
Io {
path: PathBuf,
source: Error,
},
}Expand description
What can go wrong running an instance.
Variants§
Store(Error)
The store failed.
Engine(Error)
The engine failed.
Module
A module manifest the revision embeds doesn’t parse.
Plan(PlanError)
The revision doesn’t plan.
Render(RenderError)
The plan doesn’t render.
LaunchEnv(LaunchEnvError)
The rendered output would need a credential on disk.
Secret(SecretError)
A secret couldn’t be resolved.
Source(SourceError)
A source failed, or the instance names one that isn’t configured.
LocalCredential(String)
A local credential the environment sets isn’t valid.
PortsBusy(Vec<BusyPort>)
Host ports the instance would bind are taken.
RevisionRunning
Another instance of the same revision is running (they would share a compose project).
Io
Writing the materialized tree failed.
Trait Implementations§
Source§impl Debug for InstanceError
impl Debug for InstanceError
Source§impl Display for InstanceError
impl Display for InstanceError
Source§impl Error for InstanceError
impl Error for InstanceError
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<Error> for InstanceError
impl From<Error> for InstanceError
Source§impl From<Error> for InstanceError
impl From<Error> for InstanceError
Source§impl From<LaunchEnvError> for InstanceError
impl From<LaunchEnvError> for InstanceError
Source§fn from(source: LaunchEnvError) -> Self
fn from(source: LaunchEnvError) -> Self
Converts to this type from the input type.
Source§impl From<PlanError> for InstanceError
impl From<PlanError> for InstanceError
Source§impl From<RenderError> for InstanceError
impl From<RenderError> for InstanceError
Source§fn from(source: RenderError) -> Self
fn from(source: RenderError) -> Self
Converts to this type from the input type.
Source§impl From<SecretError> for InstanceError
impl From<SecretError> for InstanceError
Source§fn from(source: SecretError) -> Self
fn from(source: SecretError) -> Self
Converts to this type from the input type.
Source§impl From<SourceError> for InstanceError
impl From<SourceError> for InstanceError
Source§fn from(source: SourceError) -> Self
fn from(source: SourceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for InstanceError
impl !UnwindSafe for InstanceError
impl Freeze for InstanceError
impl Send for InstanceError
impl Sync for InstanceError
impl Unpin for InstanceError
impl UnsafeUnpin for InstanceError
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