Struct aws_sdk_s3::error::ErrorMetadata
source · pub struct ErrorMetadata { /* private fields */ }
Expand description
Generic Error type
For many services, Errors are modeled. However, many services only partially model errors or don’t
model errors at all. In these cases, the SDK will return this generic error type to expose the
code
, message
and request_id
.
Implementations§
Trait Implementations§
source§impl Clone for ErrorMetadata
impl Clone for ErrorMetadata
source§fn clone(&self) -> ErrorMetadata
fn clone(&self) -> ErrorMetadata
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ErrorMetadata
impl Debug for ErrorMetadata
source§impl Default for ErrorMetadata
impl Default for ErrorMetadata
source§fn default() -> ErrorMetadata
fn default() -> ErrorMetadata
Returns the “default value” for a type. Read more
source§impl Display for ErrorMetadata
impl Display for ErrorMetadata
source§impl Error for ErrorMetadata
impl Error for ErrorMetadata
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for ErrorMetadata
impl PartialEq for ErrorMetadata
source§impl ProvideErrorKind for ErrorMetadata
impl ProvideErrorKind for ErrorMetadata
source§impl ProvideErrorMetadata for ErrorMetadata
impl ProvideErrorMetadata for ErrorMetadata
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message,
request ID, and potentially additional information.
source§impl RequestId for ErrorMetadata
impl RequestId for ErrorMetadata
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
Returns the request ID, or
None
if the service could not be reached.source§impl RequestIdExt for ErrorMetadata
impl RequestIdExt for ErrorMetadata
source§fn extended_request_id(&self) -> Option<&str>
fn extended_request_id(&self) -> Option<&str>
Returns the S3 Extended Request ID necessary when contacting AWS Support.
impl Eq for ErrorMetadata
impl StructuralPartialEq for ErrorMetadata
Auto Trait Implementations§
impl Freeze for ErrorMetadata
impl RefUnwindSafe for ErrorMetadata
impl Send for ErrorMetadata
impl Sync for ErrorMetadata
impl Unpin for ErrorMetadata
impl UnwindSafe for ErrorMetadata
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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
Compare self to
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>
Creates a shared type from an unshared type.