pub trait Context<T: Transferables, HC: HttpClient>: Send + 'static {
    fn send(&self, data: Message<T>) -> Result<(), Error>;
    fn source_client(&self) -> &SourceClient<HC>;
}
Expand description

Allows sending messages from workers to back to the caller.

Required Methods

Send a message back to the caller.

Implementors