#[non_exhaustive]pub enum ErrorKind {
Bind,
Serve,
InvalidConfig,
ShutdownTimeout,
MissingWorkloadToken,
NoApiKey,
NoTokenOrAuthUrl,
AuthorizationCallbackFailed,
AuthorizationTimedOut,
Service,
}Expand description
The reason an SDK operation failed. Read it with Error::kind.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Bind
The server could not bind its listen address, for example because the port is in use.
Serve
The server could not install its shutdown signal handlers, or it stopped because of an I/O error.
InvalidConfig
The builder configuration is incomplete or invalid.
ShutdownTimeout
The server received its shutdown signal, and requests or tracked background tasks were still running when the grace period ended. The server has cancelled its requests by then. Tracked background tasks may still be running.
MissingWorkloadToken
An Identity operation had no workload access token: none was given to the operation, and the request context held none or the call ran outside one.
NoApiKey
AgentCore Identity answered successfully and returned no API key.
NoTokenOrAuthUrl
AgentCore Identity answered a request for an OAuth2 token with neither a token nor an authorization URL.
AuthorizationCallbackFailed
The application’s function for the authorization URL returned an error, which
is the source.
AuthorizationTimedOut
No OAuth2 token arrived in the time allowed for the user to give consent.
Service
A call to AgentCore Identity failed. The text of the error names the operation,
the error code of the service and the request ID, for example
GetResourceApiKey failed: AccessDeniedException (request ID: ...). A failure
without a response has the classification of the AWS SDK instead, such as
dispatch failure. source is the SdkError of
the generated operation.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Forget for ErrorKind
impl Freeze for ErrorKind
impl Move for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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