pub struct GcsBucketClient { /* private fields */ }Expand description
A client whose operations target a specific bucket.
See BucketClient for operations on this type.
Trait Implementations§
Source§impl BucketClient for GcsBucketClient
impl BucketClient for GcsBucketClient
Source§fn bucket_name(&self) -> &str
fn bucket_name(&self) -> &str
Returns the name of the bucket to which this
BucketClient is connected.Source§fn ping<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ping<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Checks connectivity to the bucket.
Source§fn list_objects<'a, 'life0, 'async_trait>(
&'life0 self,
options: ListObjectOptions<'a>,
) -> Pin<Box<dyn Future<Output = Result<Page<Object>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn list_objects<'a, 'life0, 'async_trait>(
&'life0 self,
options: ListObjectOptions<'a>,
) -> Pin<Box<dyn Future<Output = Result<Page<Object>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
Returns a page of objects.
Source§fn create_object<'life0, 'life1, 'async_trait, S>(
&'life0 self,
key: &'life1 str,
value: S,
) -> Pin<Box<dyn Future<Output = Result<Object, Error>> + Send + 'async_trait>>
fn create_object<'life0, 'life1, 'async_trait, S>( &'life0 self, key: &'life1 str, value: S, ) -> Pin<Box<dyn Future<Output = Result<Object, Error>> + Send + 'async_trait>>
Creates a new object.
Source§fn get_object<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Object, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_object<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Object, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Gets an object’s metadata.
Source§fn download_object<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<BoxStream<'static, Result<Bytes, Error>>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn download_object<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<BoxStream<'static, Result<Bytes, Error>>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Downloads an object.
Source§fn delete_object<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_object<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes an object. This library does not consider deleting a non-existent object an error.
Source§impl Clone for GcsBucketClient
impl Clone for GcsBucketClient
Source§fn clone(&self) -> GcsBucketClient
fn clone(&self) -> GcsBucketClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GcsBucketClient
impl !RefUnwindSafe for GcsBucketClient
impl Send for GcsBucketClient
impl Sync for GcsBucketClient
impl Unpin for GcsBucketClient
impl !UnwindSafe for GcsBucketClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more