[][src]Struct s3_algo::ListObjects

pub struct ListObjects<C, S> { /* fields omitted */ }

A stream that can list objects, and (using member functions) delete or copy listed files.

Methods

impl<C, S> ListObjects<C, S> where
    C: S3 + Clone + Send,
    S: Stream<Item = ListObjectsV2Result> + Sized + Send
[src]

pub fn delete_all(self) -> impl Future<Output = Result<(), Error>>[src]

pub fn flatten(
    self
) -> impl TryStream<Ok = Object, Error = RusotoError<ListObjectsV2Error>>
[src]

Flatten into a stream of Objects.

pub fn copy_all<F>(
    self,
    mapping: F,
    dest_bucket: Option<String>
) -> impl Future<Output = Result<(), Error>> where
    F: Fn(String) -> String + Clone
[src]

Copy all listed objects, to a different S3 location as defined in mapping and dest_bucket. If other_bucket is not provided, copy to same bucket

Trait Implementations

impl<C, S> Stream for ListObjects<C, S> where
    S: Stream<Item = Result<ListObjectsV2Output, Error>> + Sized + Send + Unpin,
    C: Unpin
[src]

type Item = Result<ListObjectsV2Output, Error>

Values yielded by the stream.

Auto Trait Implementations

impl<C, S> RefUnwindSafe for ListObjects<C, S> where
    C: RefUnwindSafe,
    S: RefUnwindSafe

impl<C, S> Send for ListObjects<C, S> where
    C: Send,
    S: Send

impl<C, S> Sync for ListObjects<C, S> where
    C: Sync,
    S: Sync

impl<C, S> Unpin for ListObjects<C, S> where
    C: Unpin,
    S: Unpin

impl<C, S> UnwindSafe for ListObjects<C, S> where
    C: UnwindSafe,
    S: UnwindSafe

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> StreamExt for T where
    T: Stream + ?Sized
[src]

impl<S> StreamRetryExt for S where
    S: TryStream + ?Sized
[src]

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<S, T, E> TryStream for S where
    S: Stream<Item = Result<T, E>> + ?Sized
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<S> TryStreamExt for S where
    S: TryStream + ?Sized
[src]

impl<St> TryStreamExt for St where
    St: TryStream
[src]