Type Alias jsonrpc_core::FutureRpcResult
source · pub type FutureRpcResult<F, G> = Either<F, Either<Map<Either<G, Either<FutureOutput, Ready<Option<Output>>>>, fn(_: Option<Output>) -> Option<Response>>, Map<JoinAll<Either<G, Either<FutureOutput, Ready<Option<Output>>>>>, fn(_: Vec<Option<Output>>) -> Option<Response>>>>;
Expand description
A type representing an optional Response
for RPC Request
.
Aliased Type§
enum FutureRpcResult<F, G> {
Left(F),
Right(Either<Map<Either<G, Either<Pin<Box<dyn Future<Output = Option<Output>> + Send>>, Ready<Option<Output>>>>, fn(_: Option<Output>) -> Option<Response>>, Map<JoinAll<Either<G, Either<Pin<Box<dyn Future<Output = Option<Output>> + Send>>, Ready<Option<Output>>>>>, fn(_: Vec<Option<Output>>) -> Option<Response>>>),
}
Variants§
Left(F)
First branch of the type
Right(Either<Map<Either<G, Either<Pin<Box<dyn Future<Output = Option<Output>> + Send>>, Ready<Option<Output>>>>, fn(_: Option<Output>) -> Option<Response>>, Map<JoinAll<Either<G, Either<Pin<Box<dyn Future<Output = Option<Output>> + Send>>, Ready<Option<Output>>>>>, fn(_: Vec<Option<Output>>) -> Option<Response>>>)
Second branch of the type