pub struct StorageService { /* private fields */ }Expand description
Represents an implementation of StorageService for Amazon Simple Storage Service.
Implementations§
Source§impl StorageService
impl StorageService
Sourcepub fn new(config: StorageConfig) -> StorageService
pub fn new(config: StorageConfig) -> StorageService
Creates a StorageService with a given storage service configuration.
Sourcepub fn with_sdk_conf<I: Into<Config>>(config: I) -> StorageService
pub fn with_sdk_conf<I: Into<Config>>(config: I) -> StorageService
Creates a new StorageService with a implementator of Config that can
represent the AWS SDK S3 configuration that you want.
Sourcepub fn with_config(self, config: StorageConfig) -> StorageService
pub fn with_config(self, config: StorageConfig) -> StorageService
Overwrites a StorageConfig instance on this service without modifying the
actual SDK client. This is useful if you used the StorageService::with_sdk_conf
method.
If you wish to modify the SDK client with a StorageConfig, then use the StorageService::new
method instead.
Trait Implementations§
Source§impl Clone for StorageService
impl Clone for StorageService
Source§fn clone(&self) -> StorageService
fn clone(&self) -> StorageService
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 moreSource§impl Debug for StorageService
impl Debug for StorageService
Source§impl StorageService for StorageService
impl StorageService for StorageService
Source§type Error = Error
type Error = Error
Represents a generic error to use for errors that could be emitted
when calling any function.
Source§fn init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Optionally initialize this
StorageService if it requires initialization,
like creating a directory if it doesn’t exist. Read moreSource§fn open<'life0, 'async_trait, P>(
&'life0 self,
path: P,
) -> Pin<Box<dyn Future<Output = Result<Option<Bytes>>> + Send + 'async_trait>>
fn open<'life0, 'async_trait, P>( &'life0 self, path: P, ) -> Pin<Box<dyn Future<Output = Result<Option<Bytes>>> + Send + 'async_trait>>
Source§fn blob<'life0, 'async_trait, P>(
&'life0 self,
path: P,
) -> Pin<Box<dyn Future<Output = Result<Option<Blob>>> + Send + 'async_trait>>
fn blob<'life0, 'async_trait, P>( &'life0 self, path: P, ) -> Pin<Box<dyn Future<Output = Result<Option<Blob>>> + Send + 'async_trait>>
Source§fn blobs<'life0, 'async_trait, P>(
&'life0 self,
path: Option<P>,
options: Option<ListBlobsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Blob>>> + Send + 'async_trait>>
fn blobs<'life0, 'async_trait, P>( &'life0 self, path: Option<P>, options: Option<ListBlobsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Vec<Blob>>> + Send + 'async_trait>>
Source§fn delete<'life0, 'async_trait, P>(
&'life0 self,
path: P,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn delete<'life0, 'async_trait, P>( &'life0 self, path: P, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
Deletes a file in a specified
path. At the moment, () is returned but bool might be
returned to indicate if it actually deleted itself or not. Read moreSource§fn exists<'life0, 'async_trait, P>(
&'life0 self,
path: P,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
fn exists<'life0, 'async_trait, P>( &'life0 self, path: P, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
Checks the existence of the file by the specified path. Read more
Auto Trait Implementations§
impl Freeze for StorageService
impl !RefUnwindSafe for StorageService
impl Send for StorageService
impl Sync for StorageService
impl Unpin for StorageService
impl !UnwindSafe for StorageService
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.