pub trait TryFuture: Future + Sealed {
type Ok;
type Error;
// Required method
fn try_poll(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<Self::Ok, Self::Error>>;
}Expand description
A convenience for futures that return Result values that includes
a variety of adapters tailored to such futures.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".