pub trait TransactionalBlobBackend: BlobBackend + TransactionalBackend {
// Required methods
fn get_in_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
transaction_id: &'life1 str,
request: Streaming<GetRequest>,
) -> Pin<Box<dyn Future<Output = RpcResponse<Self::GetStream>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn store_in_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
transaction_id: &'life1 str,
request: Streaming<StoreRequest>,
) -> Pin<Box<dyn Future<Output = RpcResponse<Self::StoreStream>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_in_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
transaction_id: &'life1 str,
request: Streaming<UpdateRequest>,
) -> Pin<Box<dyn Future<Output = RpcResponse<Self::UpdateStream>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_in_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
transaction_id: &'life1 str,
request: Streaming<DeleteRequest>,
) -> Pin<Box<dyn Future<Output = RpcResponse<Self::DeleteStream>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Extended Blob backend trait with transaction support
Required Methods§
Sourcefn get_in_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
transaction_id: &'life1 str,
request: Streaming<GetRequest>,
) -> Pin<Box<dyn Future<Output = RpcResponse<Self::GetStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_in_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
transaction_id: &'life1 str,
request: Streaming<GetRequest>,
) -> Pin<Box<dyn Future<Output = RpcResponse<Self::GetStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get a blob within a transaction
Sourcefn store_in_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
transaction_id: &'life1 str,
request: Streaming<StoreRequest>,
) -> Pin<Box<dyn Future<Output = RpcResponse<Self::StoreStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn store_in_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
transaction_id: &'life1 str,
request: Streaming<StoreRequest>,
) -> Pin<Box<dyn Future<Output = RpcResponse<Self::StoreStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Store a blob within a transaction
Sourcefn update_in_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
transaction_id: &'life1 str,
request: Streaming<UpdateRequest>,
) -> Pin<Box<dyn Future<Output = RpcResponse<Self::UpdateStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_in_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
transaction_id: &'life1 str,
request: Streaming<UpdateRequest>,
) -> Pin<Box<dyn Future<Output = RpcResponse<Self::UpdateStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update a blob within a transaction
Sourcefn delete_in_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
transaction_id: &'life1 str,
request: Streaming<DeleteRequest>,
) -> Pin<Box<dyn Future<Output = RpcResponse<Self::DeleteStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_in_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
transaction_id: &'life1 str,
request: Streaming<DeleteRequest>,
) -> Pin<Box<dyn Future<Output = RpcResponse<Self::DeleteStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete a blob within a transaction
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.