Trait polkadot_node_subsystem::gen::futures::TryFuture
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§
type Ok
type Ok
The type of successful values yielded by this future
type Error
type Error
The type of failures yielded by this future