Struct s3handler::tokio_async::primitives::S3Pool[][src]

pub struct S3Pool {
    pub host: String,
    pub secure: bool,
    pub url_style: UrlStyle,
    pub part_size: Option<usize>,
    pub authorizer: Box<dyn Authorizer>,
    // some fields omitted
}

Fields

host: Stringsecure: bool

To use https or not, please note that integrity is secured by S3 protocol. If the confidentiality is not under concerned, the http is good.

url_style: UrlStyle

Default will be Path style, because Virtual hosted URLs may be supported for non-SSL requests only.

part_size: Option<usize>

The part size for multipart, default disabled. If Some the pull/push will check out the object size first and do mulitpart If None download and upload will be in one part

authorizer: Box<dyn Authorizer>

Implementations

impl S3Pool[src]

pub fn bucket(self, bucket_name: &str) -> Canal[src]

pub fn resource(self, s3_object: S3Object) -> Canal[src]

pub fn new(host: String) -> Self[src]

pub fn aws_v2(mut self: Self, access_key: String, secret_key: String) -> Self[src]

pub fn aws_v4(
    mut self: Self,
    access_key: String,
    secret_key: String,
    region: String
) -> Self
[src]

pub fn endpoint_and_virturalhost(
    &self,
    desc: S3Object
) -> (String, Option<String>)
[src]

pub fn init_headers(
    &self,
    headers: &mut HeaderMap,
    now: &DateTime<Utc>,
    virturalhost: Option<String>
)
[src]

pub fn part_size(mut self: Self, s: usize) -> Self[src]

Trait Implementations

impl Clone for S3Pool[src]

impl DataPool for S3Pool[src]

impl Debug for S3Pool[src]

impl From<&'_ Handler<'_>> for S3Pool[src]

impl From<Handler<'_>> for S3Pool[src]

impl S3Folder for S3Pool[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.