pub struct DefaultStorage { /* private fields */ }Expand description
An implementation of stub::Storage that
interacts with the Cloud Storage service.
This is the default implementation of a
client::Storage<T>.
§Example
use google_cloud_storage::client::Storage;
use google_cloud_storage::stub::DefaultStorage;
let client: Storage<DefaultStorage> = Storage::builder().build().await?;Trait Implementations§
Source§impl Storage for Storage
impl Storage for Storage
Source§async fn read_object(
&self,
req: ReadObjectRequest,
options: RequestOptions,
) -> Result<ReadObjectResponse>
async fn read_object( &self, req: ReadObjectRequest, options: RequestOptions, ) -> Result<ReadObjectResponse>
Implements crate::client::Storage::read_object.
Source§async fn write_object_buffered<P>(
&self,
payload: P,
req: WriteObjectRequest,
options: RequestOptions,
) -> Result<Object>
async fn write_object_buffered<P>( &self, payload: P, req: WriteObjectRequest, options: RequestOptions, ) -> Result<Object>
Implements crate::client::Storage::write_object.
Source§async fn write_object_unbuffered<P>(
&self,
payload: P,
req: WriteObjectRequest,
options: RequestOptions,
) -> Result<Object>
async fn write_object_unbuffered<P>( &self, payload: P, req: WriteObjectRequest, options: RequestOptions, ) -> Result<Object>
Implements crate::client::Storage::write_object.
Auto Trait Implementations§
impl Freeze for Storage
impl !RefUnwindSafe for Storage
impl Send for Storage
impl Sync for Storage
impl Unpin for Storage
impl !UnwindSafe for Storage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request