Enum kube_client::client::UpgradeConnectionError [−][src]
pub enum UpgradeConnectionError {
ProtocolSwitch(StatusCode),
MissingUpgradeWebSocketHeader,
MissingConnectionUpgradeHeader,
SecWebSocketAcceptKeyMismatch,
SecWebSocketProtocolMismatch,
GetPendingUpgrade(Error),
}This is supported on crate features
client and ws only.Expand description
Possible errors from upgrading to a WebSocket connection
Variants
ProtocolSwitch(StatusCode)
Tuple Fields
0: StatusCodeThe server did not respond with SWITCHING_PROTOCOLS status when upgrading the
connection.
MissingUpgradeWebSocketHeader
Upgrade header was not set to websocket (case insensitive)
MissingConnectionUpgradeHeader
Connection header was not set to Upgrade (case insensitive)
SecWebSocketAcceptKeyMismatch
Sec-WebSocket-Accept key mismatched.
SecWebSocketProtocolMismatch
Sec-WebSocket-Protocol mismatched.
GetPendingUpgrade(Error)
Tuple Fields
0: ErrorFailed to get pending HTTP upgrade.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for UpgradeConnectionError
impl Send for UpgradeConnectionError
impl Sync for UpgradeConnectionError
impl Unpin for UpgradeConnectionError
impl !UnwindSafe for UpgradeConnectionError
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
