Enum kube::Error [−][src]
pub enum Error {}Show variants
Api(ErrorResponse), Connection(Error), HyperError(Error), Service(BoxError), FromUtf8(FromUtf8Error), LinesCodecMaxLineLengthExceeded, ReadEvents(Error), HttpError(Error), InvalidUri(InvalidUri), SerdeError(Error), RequestBuild, RequestSend, RequestParse, RequestValidation(String), Kubeconfig(ConfigError), Discovery(DiscoveryError), SslError(String), OpensslError(ErrorStack), ProtocolSwitch(StatusCode), MissingUpgradeWebSocketHeader, MissingConnectionUpgradeHeader, SecWebSocketAcceptKeyMismatch, SecWebSocketProtocolMismatch,
config
or client
only.Expand description
Possible errors when working with kube
Variants
Api(ErrorResponse)
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)
ConnectionError for when TcpStream fails to connect.
HyperError(Error)
Hyper error
Service(BoxError)
Service error
FromUtf8(FromUtf8Error)
UTF-8 Error
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)
Returned on std::io::Error
when reading event stream.
HttpError(Error)
Http based error
InvalidUri(InvalidUri)
Failed to construct a URI.
SerdeError(Error)
Common error case when requesting parsing into own structs
Error building a request
Error sending a request
Error parsing a response
RequestValidation(String)
A request validation failed
Kubeconfig(ConfigError)
Configuration error
Discovery(DiscoveryError)
Discovery errors
SslError(String)
An error with configuring SSL occured
OpensslError(ErrorStack)
native-tls
only.An error from openssl when handling configuration
ProtocolSwitch(StatusCode)
ws
only.The server did not respond with SWITCHING_PROTOCOLS
status when upgrading the
connection.
ws
only.Upgrade
header was not set to websocket
(case insensitive)
ws
only.Connection
header was not set to Upgrade
(case insensitive)
ws
only.Sec-WebSocket-Accept
key mismatched.
ws
only.Sec-WebSocket-Protocol
mismatched.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
oauth
only.Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error