pub struct S3Error(_);Expand description
S3 error
Implementations
sourceimpl S3Error
impl S3Error
sourcepub fn new(code: S3ErrorCode, message: impl Into<String>) -> Self
pub fn new(code: S3ErrorCode, message: impl Into<String>) -> Self
Constructs an S3Error with code and message
sourcepub fn from_code(code: S3ErrorCode) -> S3ErrorBuilder
pub fn from_code(code: S3ErrorCode) -> S3ErrorBuilder
Start building an S3Error
sourcepub const fn span_trace(&self) -> Option<&SpanTrace>
pub const fn span_trace(&self) -> Option<&SpanTrace>
get span trace
Trait Implementations
sourceimpl Error for S3Error
impl Error for S3Error
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<CompleteMultipartUploadError> for S3Error
impl From<CompleteMultipartUploadError> for S3Error
sourcefn from(err: CompleteMultipartUploadError) -> Self
fn from(err: CompleteMultipartUploadError) -> Self
Performs the conversion.
sourceimpl From<CopyObjectError> for S3Error
impl From<CopyObjectError> for S3Error
sourcefn from(e: CopyObjectError) -> Self
fn from(e: CopyObjectError) -> Self
Performs the conversion.
sourceimpl From<CreateBucketError> for S3Error
impl From<CreateBucketError> for S3Error
sourcefn from(e: CreateBucketError) -> Self
fn from(e: CreateBucketError) -> Self
Performs the conversion.
sourceimpl From<CreateMultipartUploadError> for S3Error
impl From<CreateMultipartUploadError> for S3Error
sourcefn from(e: CreateMultipartUploadError) -> Self
fn from(e: CreateMultipartUploadError) -> Self
Performs the conversion.
sourceimpl From<DeleteBucketError> for S3Error
impl From<DeleteBucketError> for S3Error
sourcefn from(e: DeleteBucketError) -> Self
fn from(e: DeleteBucketError) -> Self
Performs the conversion.
sourceimpl From<DeleteObjectError> for S3Error
impl From<DeleteObjectError> for S3Error
sourcefn from(e: DeleteObjectError) -> Self
fn from(e: DeleteObjectError) -> Self
Performs the conversion.
sourceimpl From<DeleteObjectsError> for S3Error
impl From<DeleteObjectsError> for S3Error
sourcefn from(e: DeleteObjectsError) -> Self
fn from(e: DeleteObjectsError) -> Self
Performs the conversion.
sourceimpl From<GetBucketLocationError> for S3Error
impl From<GetBucketLocationError> for S3Error
sourcefn from(e: GetBucketLocationError) -> Self
fn from(e: GetBucketLocationError) -> Self
Performs the conversion.
sourceimpl From<GetObjectError> for S3Error
impl From<GetObjectError> for S3Error
sourcefn from(e: GetObjectError) -> Self
fn from(e: GetObjectError) -> Self
Performs the conversion.
sourceimpl From<HeadBucketError> for S3Error
impl From<HeadBucketError> for S3Error
sourcefn from(e: HeadBucketError) -> Self
fn from(e: HeadBucketError) -> Self
Performs the conversion.
sourceimpl From<HeadObjectError> for S3Error
impl From<HeadObjectError> for S3Error
sourcefn from(e: HeadObjectError) -> Self
fn from(e: HeadObjectError) -> Self
Performs the conversion.
sourceimpl From<ListBucketsError> for S3Error
impl From<ListBucketsError> for S3Error
sourcefn from(e: ListBucketsError) -> Self
fn from(e: ListBucketsError) -> Self
Performs the conversion.
sourceimpl From<ListObjectsError> for S3Error
impl From<ListObjectsError> for S3Error
sourcefn from(e: ListObjectsError) -> Self
fn from(e: ListObjectsError) -> Self
Performs the conversion.
sourceimpl From<ListObjectsV2Error> for S3Error
impl From<ListObjectsV2Error> for S3Error
sourcefn from(e: ListObjectsV2Error) -> Self
fn from(e: ListObjectsV2Error) -> Self
Performs the conversion.
sourceimpl From<PutObjectError> for S3Error
impl From<PutObjectError> for S3Error
sourcefn from(e: PutObjectError) -> Self
fn from(e: PutObjectError) -> Self
Performs the conversion.
sourceimpl<E> From<S3Error> for S3StorageError<E>
impl<E> From<S3Error> for S3StorageError<E>
sourceimpl From<UploadPartError> for S3Error
impl From<UploadPartError> for S3Error
sourcefn from(e: UploadPartError) -> Self
fn from(e: UploadPartError) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for S3Error
impl Send for S3Error
impl Sync for S3Error
impl Unpin for S3Error
impl !UnwindSafe for S3Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<E> InstrumentError for E where
TracedError<E>: From<E>,
impl<E> InstrumentError for E where
TracedError<E>: From<E>,
type Instrumented = TracedError<E>
type Instrumented = TracedError<E>
The type of the wrapped error after instrumentation
sourcefn in_current_span(self) -> <E as InstrumentError>::Instrumented
fn in_current_span(self) -> <E as InstrumentError>::Instrumented
Instrument an Error by bundling it with a SpanTrace Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more