pub trait ChunkReceiver {
fn receive_chunk<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 Chunk
) -> Pin<Box<dyn Future<Output = RpcResult<ChunkResponse>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn contract_id() -> &'static str { ... }
}
Expand description
The BlobStore service, actor side wasmbus.contractId: wasmcloud:blobstore wasmbus.actorReceive
Required Methods
sourcefn receive_chunk<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 Chunk
) -> Pin<Box<dyn Future<Output = RpcResult<ChunkResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn receive_chunk<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 Chunk
) -> Pin<Box<dyn Future<Output = RpcResult<ChunkResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Receives a file chunk from a blobstore. A blobstore provider invokes this operation on actors in response to the GetObject request. If the response sets cancelDownload, the provider will stop downloading chunks
Provided Methods
sourcefn contract_id() -> &'static str
fn contract_id() -> &'static str
returns the capability contract id for this interface