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
sourceimpl<T: Transport> ChunkReceiverSender<T>
impl<T: Transport> ChunkReceiverSender<T>
pub fn set_timeout(&self, interval: Duration)
sourceimpl<'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
sourceimpl<T: Transport + Sync + Send> ChunkReceiver for ChunkReceiverSender<T>
impl<T: Transport + Sync + Send> ChunkReceiver for ChunkReceiverSender<T>
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
sourcefn 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> where
T: Sync,
impl<T> Unpin for ChunkReceiverSender<T> where
T: Unpin,
impl<T> UnwindSafe for ChunkReceiverSender<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more