pub enum NetInspectError {
KubernetesConnection(String),
PermissionDenied(String),
Configuration(String),
NetworkConnectivity(String),
InvalidInput(String),
ResourceNotFound(String),
Timeout(String),
Runtime(String),
}Expand description
Custom error types for k8s-netinspect with specific error codes
Variants§
KubernetesConnection(String)
Kubernetes API connection errors (exit code 3)
PermissionDenied(String)
RBAC/Permission errors (exit code 5)
Configuration(String)
Configuration errors (exit code 2)
NetworkConnectivity(String)
Network connectivity issues (exit code 4)
InvalidInput(String)
Invalid input/arguments (exit code 2)
ResourceNotFound(String)
Resource not found (exit code 4)
Timeout(String)
Timeout errors
Runtime(String)
General runtime errors (exit code 1)
Implementations§
Trait Implementations§
Source§impl Debug for NetInspectError
impl Debug for NetInspectError
Source§impl Display for NetInspectError
impl Display for NetInspectError
Source§impl Error for NetInspectError
impl Error for NetInspectError
1.30.0 · 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 NetInspectError
Convert from kube::Error to NetInspectError
impl From<Error> for NetInspectError
Convert from kube::Error to NetInspectError
Source§impl From<Error> for NetInspectError
Convert from reqwest::Error to NetInspectError
impl From<Error> for NetInspectError
Convert from reqwest::Error to NetInspectError
Auto Trait Implementations§
impl Freeze for NetInspectError
impl RefUnwindSafe for NetInspectError
impl Send for NetInspectError
impl Sync for NetInspectError
impl Unpin for NetInspectError
impl UnsafeUnpin for NetInspectError
impl UnwindSafe for NetInspectError
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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 more