#[non_exhaustive]pub enum Error {
Show 16 variants
BinaryNotFound(PathBuf),
UnsupportedVersion {
found: Version,
},
ReleaseNotFound(String),
OperationInProgress(String),
Timeout(String),
Backend {
exit_code: Option<i32>,
stderr: String,
},
Parse {
command: &'static str,
message: String,
},
InvalidCommand(String),
Io(Error),
Json(Error),
Yaml(Error),
Chart(Error),
Schema(Error),
Release(Error),
Manifest(Error),
Unsupported(&'static str),
}Expand description
Everything that can go wrong when driving Helm through a backend.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BinaryNotFound(PathBuf)
The helm binary could not be found or executed.
UnsupportedVersion
The helm binary is older than Helm 4.
ReleaseNotFound(String)
Helm reported release: not found; carries Helm’s error message.
OperationInProgress(String)
Helm reported that another install, upgrade or rollback is in progress.
Timeout(String)
Helm gave up waiting (context deadline or wait timeout); carries Helm’s error message.
Backend
The backend failed in a way that is not classified; the raw stderr is always kept.
Fields
Parse
The output of a command could not be parsed.
Fields
InvalidCommand(String)
The command cannot be expressed to Helm as given (for example a secret that Helm only accepts on its command line); carries the reason.
Io(Error)
An I/O error.
Json(Error)
A JSON error.
Yaml(Error)
A YAML error.
Chart(Error)
A chart could not be loaded.
Schema(Error)
Values failed validation against a chart schema.
Release(Error)
A release record could not be decoded.
Manifest(Error)
A rendered manifest could not be parsed.
Unsupported(&'static str)
The backend does not handle this command (named by its type).
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Forget for Error
impl Freeze for Errorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
&'static str: Freeze,
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
*const ErrorImpl is !null: Freeze,
PhantomData<ErrorImpl>: Freeze,
*const ErrorImpl is !null: Freeze,
PhantomData<ErrorImpl>: Freeze,
*const Error is !null: Freeze,
PhantomData<Error>: Freeze,
PhantomData<ChartViolations>: Freeze,
*const Status is !null: Freeze,
PhantomData<Status>: Freeze,
*const ErrorImpl is !null: Freeze,
PhantomData<ErrorImpl>: Freeze,
*const dyn Error + Sync + Send is !null: Freeze,
PhantomData<dyn Error + Sync + Send>: Freeze,
*const Uri is !null: Freeze,
PhantomData<Uri>: Freeze,
*const Error is !null: Freeze,
PhantomData<Error>: Freeze,
*const Error is !null: Freeze,
PhantomData<Error>: Freeze,
PhantomData<ContentType>: Freeze,
PhantomData<HandshakeType>: Freeze,
PhantomData<EchConfigPayload>: Freeze,
PhantomData<AlgorithmIdentifier>: Freeze,
PhantomData<String>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<ExtendedKeyPurpose>: Freeze,
*const ArcInner<dyn Error + Sync + Send> is !null: Freeze,
PhantomData<ArcInner<dyn Error + Sync + Send>>: Freeze,
*const ArcInner<ErrorInner> is !null: Freeze,
PhantomData<ArcInner<ErrorInner>>: Freeze,
*const Output is !null: Freeze,
PhantomData<Output>: Freeze,
*const Error is !null: Freeze,
PhantomData<Error>: Freeze,
impl Move for Error
impl Send for Errorwhere
RawVecInner: Send,
Identifier: Send,
&'static str: Send,
Repr: Send,
BoxRaw<ErrorImpl>: Send,
BoxRaw<ErrorImpl>: Send,
BoxRaw<Error>: Send,
BoxRaw<Status>: Send,
BoxRaw<ErrorImpl>: Send,
BoxRaw<dyn Error + Sync + Send>: Send,
BoxRaw<Uri>: Send,
BoxRaw<Error>: Send,
BoxRaw<Error>: Send,
&'static [u8]: Send,
Arc<dyn Error + Sync + Send>: Send,
Arc<ErrorInner>: Send,
BoxRaw<Output>: Send,
BoxRaw<Error>: Send,
impl Sync for Errorwhere
RawVecInner: Sync,
Identifier: Sync,
Repr: Sync,
BoxRaw<ErrorImpl>: Sync,
BoxRaw<ErrorImpl>: Sync,
BoxRaw<Error>: Sync,
BoxRaw<Status>: Sync,
BoxRaw<ErrorImpl>: Sync,
BoxRaw<dyn Error + Sync + Send>: Sync,
BoxRaw<Uri>: Sync,
BoxRaw<Error>: Sync,
BoxRaw<Error>: Sync,
Arc<dyn Error + Sync + Send>: Sync,
Arc<ErrorInner>: Sync,
BoxRaw<Output>: Sync,
BoxRaw<Error>: Sync,
impl Unpin for Errorwhere
*const u8 is !null: Unpin,
&'static str: Unpin,
*const () is !null: Unpin,
&'static SimpleMessage: Unpin,
*const Custom is !null: Unpin,
Box<ErrorImpl>: Unpin,
Box<ErrorImpl>: Unpin,
Box<Error>: Unpin,
Box<Status>: Unpin,
Box<ErrorImpl>: Unpin,
Box<dyn Error + Sync + Send>: Unpin,
Box<Uri>: Unpin,
Box<Error>: Unpin,
Box<Error>: Unpin,
&'static [u8]: Unpin,
Arc<dyn Error + Sync + Send>: Unpin,
Arc<ErrorInner>: Unpin,
Box<Output>: Unpin,
Box<Error>: Unpin,
impl UnsafeUnpin for Errorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static str: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
*const Error is !null: UnsafeUnpin,
PhantomData<Error>: UnsafeUnpin,
PhantomData<ChartViolations>: UnsafeUnpin,
*const Status is !null: UnsafeUnpin,
PhantomData<Status>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
*const dyn Error + Sync + Send is !null: UnsafeUnpin,
PhantomData<dyn Error + Sync + Send>: UnsafeUnpin,
*const Uri is !null: UnsafeUnpin,
PhantomData<Uri>: UnsafeUnpin,
*const Error is !null: UnsafeUnpin,
PhantomData<Error>: UnsafeUnpin,
*const Error is !null: UnsafeUnpin,
PhantomData<Error>: UnsafeUnpin,
PhantomData<ContentType>: UnsafeUnpin,
PhantomData<HandshakeType>: UnsafeUnpin,
PhantomData<EchConfigPayload>: UnsafeUnpin,
PhantomData<AlgorithmIdentifier>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<ExtendedKeyPurpose>: UnsafeUnpin,
*const ArcInner<dyn Error + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Error + Sync + Send>>: UnsafeUnpin,
*const ArcInner<ErrorInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<ErrorInner>>: UnsafeUnpin,
*const Output is !null: UnsafeUnpin,
PhantomData<Output>: UnsafeUnpin,
*const Error is !null: UnsafeUnpin,
PhantomData<Error>: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more