pub trait ObjectIO:
Send
+ Sync
+ Debug
+ 'static {
type Error: Error + Send + Sync + 'static;
type RangeSpec: Send + 'static;
type HeaderMap: Send + 'static;
type ObjectOptions: Send + Sync + 'static;
type ObjectInfo: Send + 'static;
type GetObjectReader: Send + 'static;
type PutObjectReader: Send + 'static;
// Required methods
fn get_object_reader<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
bucket: &'life1 str,
object: &'life2 str,
range: Option<Self::RangeSpec>,
h: Self::HeaderMap,
opts: &'life3 Self::ObjectOptions,
) -> Pin<Box<dyn Future<Output = Result<Self::GetObjectReader, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn put_object<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
bucket: &'life1 str,
object: &'life2 str,
data: &'life3 mut Self::PutObjectReader,
opts: &'life4 Self::ObjectOptions,
) -> Pin<Box<dyn Future<Output = Result<Self::ObjectInfo, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait;
}Required Associated Types§
type Error: Error + Send + Sync + 'static
type RangeSpec: Send + 'static
type HeaderMap: Send + 'static
type ObjectOptions: Send + Sync + 'static
type ObjectInfo: Send + 'static
type GetObjectReader: Send + 'static
type PutObjectReader: Send + 'static
Required Methods§
fn get_object_reader<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
bucket: &'life1 str,
object: &'life2 str,
range: Option<Self::RangeSpec>,
h: Self::HeaderMap,
opts: &'life3 Self::ObjectOptions,
) -> Pin<Box<dyn Future<Output = Result<Self::GetObjectReader, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn put_object<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
bucket: &'life1 str,
object: &'life2 str,
data: &'life3 mut Self::PutObjectReader,
opts: &'life4 Self::ObjectOptions,
) -> Pin<Box<dyn Future<Output = Result<Self::ObjectInfo, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".