pub trait AsyncOperator<I> {
type Output;
type Error;
type Future<'a>: Future<Output = Result<Self::Output, Self::Error>>
where Self: 'a;
// Required methods
fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>;
fn next(&mut self, input: I) -> Self::Future<'_>;
}
Expand description
Async Operator.
It can be seen as an alias of tower_service::Service
.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.