Enum kube::Error [−][src]
pub enum Error {}Show variants
Api(ErrorResponse), Connection(Error), HyperError(Error), Service(BoxError), FromUtf8(FromUtf8Error), LinesCodecMaxLineLengthExceeded, ReadEvents(Error), HttpError(Error), InternalUrlError(ParseError), SerdeError(Error), RequestBuild, RequestSend, RequestParse, RequestValidation(String), Kubeconfig(ConfigError), SslError(String), OpensslError(ErrorStack), ProtocolSwitch(StatusCode), MissingUpgradeWebSocketHeader, MissingConnectionUpgradeHeader, SecWebSocketAcceptKeyMismatch, SecWebSocketProtocolMismatch,
Expand description
Possible errors when working with kube
Variants
Api(ErrorResponse)
Expand description
ApiError for when things fail
This can be parsed into as an error handling fallback.
It’s also used in WatchEvent
from watch calls.
It’s quite common to get a 410 Gone
when the resourceVersion
is too old.
Connection(Error)
Expand description
ConnectionError for when TcpStream fails to connect.
HyperError(Error)
Expand description
Hyper error
Service(BoxError)
Expand description
Service error
FromUtf8(FromUtf8Error)
Expand description
UTF-8 Error
Expand description
Returned when failed to find a newline character within max length.
Only returned by Client::request_events
and this should never happen as
the max is usize::MAX
.
ReadEvents(Error)
Expand description
Returned on std::io::Error
when reading event stream.
HttpError(Error)
Expand description
Http based error
InternalUrlError(ParseError)
Expand description
Url conversion error
SerdeError(Error)
Expand description
Common error case when requesting parsing into own structs
Expand description
Error building a request
Expand description
Error sending a request
Expand description
Error parsing a response
RequestValidation(String)
Expand description
A request validation failed
Kubeconfig(ConfigError)
Expand description
Configuration error
SslError(String)
Expand description
An error with configuring SSL occured
OpensslError(ErrorStack)
Expand description
An error from openssl when handling configuration
ProtocolSwitch(StatusCode)
ws
only.Expand description
The server did not respond with SWITCHING_PROTOCOLS
status when upgrading the
connection.
ws
only.Expand description
Upgrade
header was not set to websocket
(case insensitive)
ws
only.Expand description
Connection
header was not set to Upgrade
(case insensitive)
ws
only.Expand description
Sec-WebSocket-Accept
key mismatched.
ws
only.Expand description
Sec-WebSocket-Protocol
mismatched.
Trait Implementations
impl Error for Error
[src]
impl Error for Error
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl From<ConfigError> for Error
[src]
impl From<ConfigError> for Error
[src]fn from(source: ConfigError) -> Self
[src]
fn from(source: ConfigError) -> Self
[src]Performs the conversion.
impl From<ErrorStack> for Error
[src]
impl From<ErrorStack> for Error
[src]fn from(source: ErrorStack) -> Self
[src]
fn from(source: ErrorStack) -> Self
[src]Performs the conversion.
impl From<FromUtf8Error> for Error
[src]
impl From<FromUtf8Error> for Error
[src]fn from(source: FromUtf8Error) -> Self
[src]
fn from(source: FromUtf8Error) -> Self
[src]Performs the conversion.
impl From<OAuthError> for Error
[src]
impl From<OAuthError> for Error
[src]oauth
only.fn from(e: OAuthError) -> Self
[src]
fn from(e: OAuthError) -> Self
[src]Performs the conversion.
impl From<ParseError> for Error
[src]
impl From<ParseError> for Error
[src]fn from(source: ParseError) -> Self
[src]
fn from(source: ParseError) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,