Struct s3handler::tokio_async::primitives::S3Pool [−][src]
Fields
host: String
secure: 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
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]
mut self: Self,
access_key: String,
secret_key: String,
region: String
) -> Self
pub fn endpoint_and_virturalhost(
&self,
desc: S3Object
) -> (String, Option<String>)
[src]
&self,
desc: S3Object
) -> (String, Option<String>)
pub fn init_headers(
&self,
headers: &mut HeaderMap,
now: &DateTime<Utc>,
virturalhost: Option<String>
)
[src]
&self,
headers: &mut HeaderMap,
now: &DateTime<Utc>,
virturalhost: Option<String>
)
pub fn part_size(mut self: Self, s: usize) -> Self
[src]
Trait Implementations
impl Clone for S3Pool
[src]
impl DataPool for S3Pool
[src]
fn push<'life0, 'async_trait>(
&'life0 self,
desc: S3Object,
object: Bytes
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
desc: S3Object,
object: Bytes
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn pull<'life0, 'async_trait>(
&'life0 self,
desc: S3Object
) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
desc: S3Object
) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
index: Option<S3Object>
) -> Pin<Box<dyn Future<Output = Result<Box<dyn S3Folder>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
index: Option<S3Object>
) -> Pin<Box<dyn Future<Output = Result<Box<dyn S3Folder>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn remove<'life0, 'async_trait>(
&'life0 self,
desc: S3Object
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
desc: S3Object
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn check_scheme(&self, scheme: &str) -> Result<(), Error>
[src]
fn fetch_meta<'life0, 'life1, 'async_trait>(
&'life0 self,
desc: &'life1 mut S3Object
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
desc: &'life1 mut S3Object
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn as_base_from(self, resource_location: &str) -> Result<Canal, Error> where
Self: Sized + 'static,
[src]
Self: Sized + 'static,
fn as_target_to(self, resource_location: &str) -> Result<Canal, Error> where
Self: Sized + 'static,
[src]
Self: Sized + 'static,
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
impl !RefUnwindSafe for S3Pool
[src]
impl Send for S3Pool
[src]
impl Sync for S3Pool
[src]
impl Unpin for S3Pool
[src]
impl !UnwindSafe for S3Pool
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,