pub trait QueueProducer {
type Message;
// Required methods
fn send_task(
&self,
task: Task,
) -> impl Future<Output = Result<Self::Message>>;
fn receive_response(
&self,
message: Self::Message,
) -> impl Future<Output = Result<Option<Response>>>;
}Expand description
Submits tasks and retrieves their responses.
Waiting and cancellation semantics depend on the backend. Returned futures
do not carry a Send guarantee; this trait is not dyn-compatible.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".