pub enum OperatorError {
Show 13 variants
KubeError(Error),
NotFound {
kind: String,
name: String,
namespace: String,
},
InvalidConfig(String),
ReconcileFailed(String),
SerializationError(Error),
YamlError(Error),
ValidationError(String),
FinalizerError(String),
Timeout(String),
Internal(String),
ClusterNotFound(String),
TopicError(String),
ConnectError(String),
}Expand description
Errors that can occur during operator operations
Variants§
KubeError(Error)
Kubernetes API error
NotFound
Resource not found
InvalidConfig(String)
Invalid configuration
ReconcileFailed(String)
Reconciliation failed
SerializationError(Error)
Serialization error
YamlError(Error)
YAML serialization error
ValidationError(String)
Validation error
FinalizerError(String)
Finalizer error
Timeout(String)
Timeout error
Internal(String)
Internal error
ClusterNotFound(String)
Cluster not found
TopicError(String)
Topic operation failed
ConnectError(String)
Connect operation failed
Implementations§
Source§impl OperatorError
impl OperatorError
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Check if this error is retryable
Sourcepub fn requeue_delay(&self) -> Option<Duration>
pub fn requeue_delay(&self) -> Option<Duration>
Get a suggested requeue delay for retryable errors
Trait Implementations§
Source§impl Debug for OperatorError
impl Debug for OperatorError
Source§impl Display for OperatorError
impl Display for OperatorError
Source§impl Error for OperatorError
impl Error for OperatorError
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 OperatorError
impl From<Error> for OperatorError
Source§impl From<Error> for OperatorError
impl From<Error> for OperatorError
Auto Trait Implementations§
impl !Freeze for OperatorError
impl !RefUnwindSafe for OperatorError
impl Send for OperatorError
impl Sync for OperatorError
impl Unpin for OperatorError
impl !UnwindSafe for OperatorError
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> 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>
Converts
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>
Converts
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> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP