tower-actor 0.2.0

A `tower` middleware that creates a `Service` by passing messages to an actor.
Documentation
1
2
3
4
5
6
7
8
use tokio::sync::oneshot;

#[derive(Debug)]
pub struct Message<R, S, E> {
    pub req: R,
    pub rsp_sender: oneshot::Sender<Result<S, E>>,
    pub span: tracing::Span,
}