Trait s4::S4
[−]
[src]
pub trait S4<P, D> where
P: ProvideAwsCredentials,
D: DispatchSignedRequest, { fn object_to_file<F>(
&self,
source: &GetObjectRequest,
target: F
) -> S4Result<GetObjectOutput>
where
F: AsRef<Path>; fn object_to_write<W>(
&self,
source: &GetObjectRequest,
target: &mut W
) -> S4Result<GetObjectOutput>
where
W: Write; fn iter_objects(&self, bucket: &str) -> ObjectIter<P, D>; fn iter_objects_with_prefix(
&self,
bucket: &str,
prefix: &str
) -> ObjectIter<P, D>; }
Required Methods
fn object_to_file<F>(
&self,
source: &GetObjectRequest,
target: F
) -> S4Result<GetObjectOutput> where
F: AsRef<Path>,
&self,
source: &GetObjectRequest,
target: F
) -> S4Result<GetObjectOutput> where
F: AsRef<Path>,
Get object and write it to file target
fn object_to_write<W>(
&self,
source: &GetObjectRequest,
target: &mut W
) -> S4Result<GetObjectOutput> where
W: Write,
&self,
source: &GetObjectRequest,
target: &mut W
) -> S4Result<GetObjectOutput> where
W: Write,
Get object and write it to target
fn iter_objects(&self, bucket: &str) -> ObjectIter<P, D>
Iterator over all objects
Objects are lexicographically sorted by their key.
fn iter_objects_with_prefix(
&self,
bucket: &str,
prefix: &str
) -> ObjectIter<P, D>
&self,
bucket: &str,
prefix: &str
) -> ObjectIter<P, D>
Iterator over objects with given prefix
Objects are lexicographically sorted by their key.
Implementations on Foreign Types
impl<P, D> S4<P, D> for S3Client<P, D> where
P: ProvideAwsCredentials,
D: DispatchSignedRequest,
[src]
P: ProvideAwsCredentials,
D: DispatchSignedRequest,
fn object_to_file<F>(
&self,
source: &GetObjectRequest,
target: F
) -> Result<GetObjectOutput, S4Error> where
F: AsRef<Path>,
[src]
&self,
source: &GetObjectRequest,
target: F
) -> Result<GetObjectOutput, S4Error> where
F: AsRef<Path>,
fn object_to_write<W>(
&self,
source: &GetObjectRequest,
target: &mut W
) -> Result<GetObjectOutput, S4Error> where
W: Write,
[src]
&self,
source: &GetObjectRequest,
target: &mut W
) -> Result<GetObjectOutput, S4Error> where
W: Write,
fn iter_objects(&self, bucket: &str) -> ObjectIter<P, D>
[src]
fn iter_objects_with_prefix(
&self,
bucket: &str,
prefix: &str
) -> ObjectIter<P, D>
[src]
&self,
bucket: &str,
prefix: &str
) -> ObjectIter<P, D>