[][src]Struct s3::request::Request

pub struct Request<'a> {
    pub bucket: &'a Bucket,
    pub path: &'a str,
    pub command: Command<'a>,
    pub datetime: DateTime<Utc>,
    pub async: bool,
}

Fields

bucket: &'a Bucketpath: &'a strcommand: Command<'a>datetime: DateTime<Utc>async: bool

Methods

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

pub fn new<'b>(
    bucket: &'b Bucket,
    path: &'b str,
    command: Command<'b>
) -> Request<'b>
[src]

pub fn response_data(&self) -> S3Result<(Vec<u8>, u16)>[src]

pub fn response_data_to_writer<T: Write>(&self, writer: &mut T) -> S3Result<u16>[src]

pub fn response_future(&self) -> impl Future<Item = Response, Error = S3Error>[src]

pub fn response_data_future(
    &self
) -> impl Future<Item = (Vec<u8>, u16), Error = S3Error>
[src]

pub fn response_data_to_writer_future<'b, T: Write>(
    &self,
    writer: &'b mut T
) -> impl Future<Item = u16> + 'b
[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Request<'a>

impl<'a> Send for Request<'a>

impl<'a> Sync for Request<'a>

impl<'a> Unpin for Request<'a>

impl<'a> UnwindSafe for Request<'a>

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> From<T> 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, 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.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,