Trait indicator::async_operator::AsyncOperator
source · 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§
Object Safety§
This trait is not object safe.