pub struct ChunkReceiverSender<T: Transport> { /* private fields */ }
Expand description
ChunkReceiverSender sends messages to a ChunkReceiver service The BlobStore service, actor side client for sending ChunkReceiver messages
Implementations§
source§impl<T: Transport> ChunkReceiverSender<T>
impl<T: Transport> ChunkReceiverSender<T>
pub fn set_timeout(&self, interval: Duration)
source§impl<'send> ChunkReceiverSender<ProviderTransport<'send>>
impl<'send> ChunkReceiverSender<ProviderTransport<'send>>
sourcepub fn for_actor(ld: &'send LinkDefinition) -> Self
pub fn for_actor(ld: &'send LinkDefinition) -> Self
Constructs a Sender using an actor’s LinkDefinition, Uses the provider’s HostBridge for rpc
Trait Implementations§
source§impl<T: Transport + Sync + Send> ChunkReceiver for ChunkReceiverSender<T>
impl<T: Transport + Sync + Send> ChunkReceiver for ChunkReceiverSender<T>
source§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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: '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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: '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
source§fn contract_id() -> &'static str
fn contract_id() -> &'static str
returns the capability contract id for this interface
Auto Trait Implementations§
impl<T> RefUnwindSafe for ChunkReceiverSender<T>where T: RefUnwindSafe,
impl<T> Send for ChunkReceiverSender<T>
impl<T> Sync for ChunkReceiverSender<T>
impl<T> Unpin for ChunkReceiverSender<T>where T: Unpin,
impl<T> UnwindSafe for ChunkReceiverSender<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more