pub trait Resolver: Send {
type Input: ?Sized;
type Output;
type Error;
// Required method
fn resolve(
&self,
input: &Self::Input,
) -> impl Future<Output = Result<Self::Output, Self::Error>> + Send;
}
Required Associated Types§
Required Methods§
fn resolve( &self, input: &Self::Input, ) -> impl Future<Output = Result<Self::Output, Self::Error>> + Send
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.