Trait holochain::prelude::dependencies::kitsune_p2p_types::dependencies::futures::prelude::TryFuture
pub trait TryFuture: Future + Sealed {
type Ok;
type Error;
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