fileloft-store-s3 0.3.0

Amazon S3 / S3-compatible storage backend for the tus.io resumable upload protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

/// Errors from [`S3Store`](crate::S3Store) construction.
///
/// These represent configuration and SDK initialization failures that happen
/// at startup — before any tus request is processed. Once the store is built,
/// all runtime errors go through [`TusError`](fileloft_core::error::TusError).
#[derive(Debug, Error)]
pub enum S3StoreError {
    #[error("S3 bucket name is empty")]
    BucketEmpty,

    #[error("failed to build S3 client: {0}")]
    ClientInit(String),
}