MCPcopy Create free account
hub / github.com/Sovereign-Engineering/obscuravpn-client / api_error_kind

Method api_error_kind

rustlib/src/errors.rs:151–156  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

149
150impl ApiError {
151 pub fn api_error_kind(&self) -> Option<&obscuravpn_api::cmd::ApiErrorKind> {
152 if let Self::ApiClient(ClientError::ApiError(error)) = self {
153 return Some(&error.body.error);
154 }
155 None
156 }
157}
158
159#[derive(Debug, Error)]

Callers 1

new_tunnelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected