[][src]Trait s3::request_trait::Request

pub trait Request {
    type Response;
    type HeaderMap;
#[must_use]    fn response<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Response>> + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn response_data<'life0, 'async_trait>(
        &'life0 self,
        etag: bool
    ) -> Pin<Box<dyn Future<Output = Result<(Vec<u8>, u16)>> + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn response_data_to_writer<'b, 'life0, 'async_trait, T: Write>(
        &'life0 self,
        writer: &'b mut T
    ) -> Pin<Box<dyn Future<Output = Result<u16>> + 'async_trait>>
    where
        'b: 'async_trait,
        T: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn response_header<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(Self::HeaderMap, u16)>> + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn datetime(&self) -> DateTime<Utc>;
fn bucket(&self) -> Bucket;
fn command(&self) -> Command<'_>;
fn path(&self) -> String; fn signing_key(&self) -> Result<Vec<u8>> { ... }
fn request_body(&self) -> Vec<u8> { ... }
fn long_date(&self) -> String { ... }
fn string_to_sign(&self, request: &str) -> String { ... }
fn host_header(&self) -> String { ... }
fn presigned(&self) -> Result<String> { ... }
fn presigned_authorization(
        &self,
        custom_headers: Option<&Headers>
    ) -> Result<String> { ... }
fn presigned_canonical_request(&self, headers: &Headers) -> Result<String> { ... }
fn presigned_url_no_sig(
        &self,
        expiry: u32,
        custom_headers: Option<&Headers>
    ) -> Result<Url> { ... }
fn url(&self, encode_path: bool) -> Url { ... }
fn canonical_request(&self, headers: &Headers) -> String { ... }
fn authorization(&self, headers: &Headers) -> Result<String> { ... }
fn headers(&self) -> Result<Headers> { ... } }

Associated Types

Loading content...

Required methods

#[must_use]fn response<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Response>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn response_data<'life0, 'async_trait>(
    &'life0 self,
    etag: bool
) -> Pin<Box<dyn Future<Output = Result<(Vec<u8>, u16)>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn response_data_to_writer<'b, 'life0, 'async_trait, T: Write>(
    &'life0 self,
    writer: &'b mut T
) -> Pin<Box<dyn Future<Output = Result<u16>> + 'async_trait>> where
    'b: 'async_trait,
    T: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn response_header<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<(Self::HeaderMap, u16)>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

fn datetime(&self) -> DateTime<Utc>

fn bucket(&self) -> Bucket

fn command(&self) -> Command<'_>

fn path(&self) -> String

Loading content...

Provided methods

fn signing_key(&self) -> Result<Vec<u8>>

fn request_body(&self) -> Vec<u8>

fn long_date(&self) -> String

fn string_to_sign(&self, request: &str) -> String

fn host_header(&self) -> String

fn presigned(&self) -> Result<String>

fn presigned_authorization(
    &self,
    custom_headers: Option<&Headers>
) -> Result<String>

fn presigned_canonical_request(&self, headers: &Headers) -> Result<String>

fn presigned_url_no_sig(
    &self,
    expiry: u32,
    custom_headers: Option<&Headers>
) -> Result<Url>

fn url(&self, encode_path: bool) -> Url

fn canonical_request(&self, headers: &Headers) -> String

fn authorization(&self, headers: &Headers) -> Result<String>

fn headers(&self) -> Result<Headers>

Loading content...

Implementors

impl<'a> Request for Reqwest<'a>[src]

type Response = Response

type HeaderMap = HeaderMap

Loading content...