@@ -527,14 +527,14 @@ impl ContextInternal {
527527 . sys_complete_promise ( id. to_owned ( ) , NonEmptyValue :: Failure ( failure. into ( ) ) ) ;
528528 }
529529
530- pub fn run < ' a , Run , Fut , Res > (
530+ pub fn run < ' a , Run , Fut , Out > (
531531 & ' a self ,
532532 run_closure : Run ,
533- ) -> impl crate :: context:: RunFuture < Result < Res , TerminalError > > + Send + Sync + ' a
533+ ) -> impl crate :: context:: RunFuture < Result < Out , TerminalError > > + Send + Sync + ' a
534534 where
535- Run : RunClosure < Fut = Fut , Output = Res > + Send + Sync + ' a ,
536- Fut : Future < Output = HandlerResult < Res > > + Send + Sync + ' a ,
537- Res : Serialize + Deserialize + ' static ,
535+ Run : RunClosure < Fut = Fut , Output = Out > + Send + Sync + ' a ,
536+ Fut : Future < Output = HandlerResult < Out > > + Send + Sync + ' a ,
537+ Out : Serialize + Deserialize + ' static ,
538538 {
539539 let this = Arc :: clone ( & self . inner ) ;
540540
@@ -631,12 +631,12 @@ impl<Run, Fut, Ret> RunFuture<Run, Fut, Ret> {
631631 }
632632}
633633
634- impl < Run , Fut , Ret > crate :: context:: RunFuture < Result < Result < Ret , TerminalError > , Error > >
635- for RunFuture < Run , Fut , Ret >
634+ impl < Run , Fut , Out > crate :: context:: RunFuture < Result < Result < Out , TerminalError > , Error > >
635+ for RunFuture < Run , Fut , Out >
636636where
637- Run : RunClosure < Fut = Fut , Output = Ret > + Send + Sync ,
638- Fut : Future < Output = HandlerResult < Ret > > + Send + Sync ,
639- Ret : Serialize + Deserialize ,
637+ Run : RunClosure < Fut = Fut , Output = Out > + Send + Sync ,
638+ Fut : Future < Output = HandlerResult < Out > > + Send + Sync ,
639+ Out : Serialize + Deserialize ,
640640{
641641 fn with_retry_policy ( mut self , retry_policy : RunRetryPolicy ) -> Self {
642642 self . retry_policy = RetryPolicy :: Exponential {
@@ -655,13 +655,13 @@ where
655655 }
656656}
657657
658- impl < Run , Fut , Res > Future for RunFuture < Run , Fut , Res >
658+ impl < Run , Fut , Out > Future for RunFuture < Run , Fut , Out >
659659where
660- Run : RunClosure < Fut = Fut , Output = Res > + Send + Sync ,
661- Res : Serialize + Deserialize ,
662- Fut : Future < Output = HandlerResult < Res > > + Send + Sync ,
660+ Run : RunClosure < Fut = Fut , Output = Out > + Send + Sync ,
661+ Out : Serialize + Deserialize ,
662+ Fut : Future < Output = HandlerResult < Out > > + Send + Sync ,
663663{
664- type Output = Result < Result < Res , TerminalError > , Error > ;
664+ type Output = Result < Result < Out , TerminalError > , Error > ;
665665
666666 fn poll ( self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < Self :: Output > {
667667 let mut this = self . project ( ) ;
@@ -681,7 +681,7 @@ where
681681 // Enter the side effect
682682 match enter_result. map_err ( ErrorInner :: VM ) ? {
683683 RunEnterResult :: Executed ( NonEmptyValue :: Success ( mut v) ) => {
684- let t = Res :: deserialize ( & mut v) . map_err ( |e| {
684+ let t = Out :: deserialize ( & mut v) . map_err ( |e| {
685685 ErrorInner :: Deserialization {
686686 syscall : "run" ,
687687 err : Box :: new ( e) ,
@@ -707,7 +707,7 @@ where
707707 }
708708 RunStateProj :: ClosureRunning { start_time, fut } => {
709709 let res = match ready ! ( fut. poll( cx) ) {
710- Ok ( t) => RunExitResult :: Success ( Res :: serialize ( & t) . map_err ( |e| {
710+ Ok ( t) => RunExitResult :: Success ( Out :: serialize ( & t) . map_err ( |e| {
711711 ErrorInner :: Serialization {
712712 syscall : "run" ,
713713 err : Box :: new ( e) ,
@@ -752,7 +752,7 @@ where
752752 }
753753 . into ( ) ) ,
754754 Value :: Success ( mut s) => {
755- let t = Res :: deserialize ( & mut s) . map_err ( |e| {
755+ let t = Out :: deserialize ( & mut s) . map_err ( |e| {
756756 ErrorInner :: Deserialization {
757757 syscall : "run" ,
758758 err : Box :: new ( e) ,
0 commit comments