pub trait MultipartService:
Send
+ Sync
+ 'static {
// Required methods
fn create_multipart<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateMultipartRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<MultipartUpload>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn upload_part<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<UploadPartRequest>>,
) -> Pin<Box<dyn Future<Output = Result<Response<UploadedPart>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_parts<'life0, 'async_trait>(
&'life0 self,
request: Request<ListPartsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListPartsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn complete_multipart<'life0, 'async_trait>(
&'life0 self,
request: Request<CompleteMultipartRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ObjectVersion>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn abort_multipart<'life0, 'async_trait>(
&'life0 self,
request: Request<AbortMultipartRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AbortMultipartResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with MultipartServiceServer.
Required Methods§
fn create_multipart<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateMultipartRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<MultipartUpload>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn upload_part<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<UploadPartRequest>>,
) -> Pin<Box<dyn Future<Output = Result<Response<UploadedPart>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_parts<'life0, 'async_trait>(
&'life0 self,
request: Request<ListPartsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListPartsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn complete_multipart<'life0, 'async_trait>(
&'life0 self,
request: Request<CompleteMultipartRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ObjectVersion>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn abort_multipart<'life0, 'async_trait>(
&'life0 self,
request: Request<AbortMultipartRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AbortMultipartResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".