pub trait StorageExt: StorageTrait {
// Provided method
fn store_stream<'life0, 'life1, 'life2, 'async_trait, R>(
&'life0 self,
reader: &'life1 mut R,
file_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, StorageError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
R: 'async_trait + AsyncRead + Unpin + Send,
Self: Sync + 'async_trait { ... }
}Expand description
Extension trait providing generic convenience methods on top of StorageTrait.
Auto-implemented for all types that implement StorageTrait.
Provided Methods§
Sourcefn store_stream<'life0, 'life1, 'life2, 'async_trait, R>(
&'life0 self,
reader: &'life1 mut R,
file_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, StorageError>> + Send + 'async_trait>>
fn store_stream<'life0, 'life1, 'life2, 'async_trait, R>( &'life0 self, reader: &'life1 mut R, file_name: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<String, StorageError>> + Send + 'async_trait>>
Store data from a typed async reader (streaming).
Delegates to StorageTrait::store_stream_dyn.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".