pub trait BlobStoreService:
Send
+ Sync
+ 'static {
// Required methods
fn stat_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<StatBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<StatBlobResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<GetBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetBlobResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn put_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<PutBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PutBlobResponse>, 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 BlobStoreServiceServer.
Required Methods§
Sourcefn stat_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<StatBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<StatBlobResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stat_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<StatBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<StatBlobResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stat checks if a [BlobMeta] for a given blob exists.
Sourcefn get_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<GetBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetBlobResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<GetBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetBlobResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get retrieves a [BlobMeta] for a given blob digest.
Sourcefn put_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<PutBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PutBlobResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn put_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<PutBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PutBlobResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Put persists a [BlobMeta] for the given blob digest.