pub trait ChunkStoreService:
Send
+ Sync
+ 'static {
type GetChunkStream: Stream<Item = Result<GetChunkResponse, Status>> + Send + 'static;
// Required methods
fn stat_chunk<'life0, 'async_trait>(
&'life0 self,
request: Request<StatChunkRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<StatChunkResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_chunk<'life0, 'async_trait>(
&'life0 self,
request: Request<GetChunkRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetChunkStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn put_chunk<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<PutChunkRequest>>,
) -> Pin<Box<dyn Future<Output = Result<Response<PutChunkResponse>, 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 ChunkStoreServiceServer.
Required Associated Types§
Sourcetype GetChunkStream: Stream<Item = Result<GetChunkResponse, Status>> + Send + 'static
type GetChunkStream: Stream<Item = Result<GetChunkResponse, Status>> + Send + 'static
Server streaming response type for the GetChunk method.
Required Methods§
Sourcefn stat_chunk<'life0, 'async_trait>(
&'life0 self,
request: Request<StatChunkRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<StatChunkResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stat_chunk<'life0, 'async_trait>(
&'life0 self,
request: Request<StatChunkRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<StatChunkResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stat can be used to check for the existence of a chunk.
Sourcefn get_chunk<'life0, 'async_trait>(
&'life0 self,
request: Request<GetChunkRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetChunkStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_chunk<'life0, 'async_trait>(
&'life0 self,
request: Request<GetChunkRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetChunkStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get can be used to retrieve a chunk. The server may break down the response into a stream of smaller messages, to keep proto messages smaller than its maximum chunk size.
Sourcefn put_chunk<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<PutChunkRequest>>,
) -> Pin<Box<dyn Future<Output = Result<Response<PutChunkResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn put_chunk<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<PutChunkRequest>>,
) -> Pin<Box<dyn Future<Output = Result<Response<PutChunkResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
PutChunk can be used to upload a chunk. The client may break down the response into a stream of smaller messages, to keep proto messages smaller than its maximum chunk size.