pub enum Error<ReconcileErr>where
ReconcileErr: StdError + 'static,{
ApplyFailed(ReconcileErr),
CleanupFailed(ReconcileErr),
AddFinalizer(Error),
RemoveFinalizer(Error),
UnnamedObject,
InvalidFinalizer,
}Expand description
Errors from the finalizer helper
Note that this error takes the user’s error as a type parameter. This makes its usage within loosely typed errors (such as anyhow) difficult.
Using proper error enums such as ones generated by e.g. thiserror is the easiest. See https://github.com/kube-rs/kube/discussions/982
Variants§
ApplyFailed(ReconcileErr)
User side Event::Apply branch failed
CleanupFailed(ReconcileErr)
User side Event::Cleanup branch failed
AddFinalizer(Error)
The patch call adding a finalizer failed
RemoveFinalizer(Error)
The patch call removing a finalizer failed
UnnamedObject
The object requested to be patched has no name
This should not happen unless you are hand crafting the object without a name
InvalidFinalizer
The finalizer path was invalid
This should not happen, the path is constructed internally and should be
valid as far as json_patch is concerned.
Trait Implementations§
Source§impl<ReconcileErr> Error for Error<ReconcileErr>
impl<ReconcileErr> Error for Error<ReconcileErr>
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<ReconcileErr> !Freeze for Error<ReconcileErr>
impl<ReconcileErr> !RefUnwindSafe for Error<ReconcileErr>
impl<ReconcileErr> Send for Error<ReconcileErr>where
ReconcileErr: Send,
impl<ReconcileErr> Sync for Error<ReconcileErr>where
ReconcileErr: Sync,
impl<ReconcileErr> Unpin for Error<ReconcileErr>where
ReconcileErr: Unpin,
impl<ReconcileErr> UnsafeUnpin for Error<ReconcileErr>where
ReconcileErr: UnsafeUnpin,
impl<ReconcileErr> !UnwindSafe for Error<ReconcileErr>
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
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 moreSource§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
map-response-body only.Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
trace only.Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
trace only.