@@ -672,3 +672,158 @@ pub mod bindgen_examples;
672672#[ cfg( not( any( docsrs, test, doctest) ) ) ]
673673#[ doc( hidden) ]
674674pub mod bindgen_examples { }
675+
676+ #[ cfg( not( feature = "component-model-async" ) ) ]
677+ pub ( crate ) mod concurrent {
678+ use {
679+ crate :: component:: {
680+ func:: { ComponentType , LiftContext , LowerContext } ,
681+ Val ,
682+ } ,
683+ anyhow:: Result ,
684+ core:: { marker:: PhantomData , mem:: MaybeUninit } ,
685+ wasmtime_environ:: component:: InterfaceType ,
686+ } ;
687+
688+ pub struct ErrorContext ;
689+
690+ impl ErrorContext {
691+ pub ( crate ) fn new ( _rep : u32 ) -> Self {
692+ unreachable ! ( )
693+ }
694+
695+ pub ( crate ) fn into_val ( self ) -> Val {
696+ unreachable ! ( )
697+ }
698+
699+ pub ( crate ) fn lower < T > (
700+ & self ,
701+ _cx : & mut LowerContext < ' _ , T > ,
702+ _ty : InterfaceType ,
703+ _dst : & mut MaybeUninit < <u32 as ComponentType >:: Lower > ,
704+ ) -> Result < ( ) > {
705+ unreachable ! ( )
706+ }
707+
708+ pub ( crate ) fn store < T > (
709+ & self ,
710+ _cx : & mut LowerContext < ' _ , T > ,
711+ _ty : InterfaceType ,
712+ _offset : usize ,
713+ ) -> Result < ( ) > {
714+ unreachable ! ( )
715+ }
716+
717+ pub ( crate ) fn lift (
718+ _cx : & mut LiftContext < ' _ > ,
719+ _ty : InterfaceType ,
720+ _src : & <u32 as ComponentType >:: Lower ,
721+ ) -> Result < Self > {
722+ unreachable ! ( )
723+ }
724+
725+ pub ( crate ) fn load (
726+ _cx : & mut LiftContext < ' _ > ,
727+ _ty : InterfaceType ,
728+ _bytes : & [ u8 ] ,
729+ ) -> Result < Self > {
730+ unreachable ! ( )
731+ }
732+ }
733+
734+ pub struct StreamReader < P > {
735+ _phantom : PhantomData < P > ,
736+ }
737+
738+ impl < P > StreamReader < P > {
739+ pub ( crate ) fn new ( _rep : u32 ) -> Self {
740+ unreachable ! ( )
741+ }
742+
743+ pub ( crate ) fn into_val ( self ) -> Val {
744+ unreachable ! ( )
745+ }
746+
747+ pub ( crate ) fn lower < T > (
748+ & self ,
749+ _cx : & mut LowerContext < ' _ , T > ,
750+ _ty : InterfaceType ,
751+ _dst : & mut MaybeUninit < <u32 as ComponentType >:: Lower > ,
752+ ) -> Result < ( ) > {
753+ unreachable ! ( )
754+ }
755+
756+ pub ( crate ) fn store < T > (
757+ & self ,
758+ _cx : & mut LowerContext < ' _ , T > ,
759+ _ty : InterfaceType ,
760+ _offset : usize ,
761+ ) -> Result < ( ) > {
762+ unreachable ! ( )
763+ }
764+
765+ pub ( crate ) fn lift (
766+ _cx : & mut LiftContext < ' _ > ,
767+ _ty : InterfaceType ,
768+ _src : & <u32 as ComponentType >:: Lower ,
769+ ) -> Result < Self > {
770+ unreachable ! ( )
771+ }
772+
773+ pub ( crate ) fn load (
774+ _cx : & mut LiftContext < ' _ > ,
775+ _ty : InterfaceType ,
776+ _bytes : & [ u8 ] ,
777+ ) -> Result < Self > {
778+ unreachable ! ( )
779+ }
780+ }
781+
782+ pub struct FutureReader < P > {
783+ _phantom : PhantomData < P > ,
784+ }
785+
786+ impl < P > FutureReader < P > {
787+ pub ( crate ) fn new ( _rep : u32 ) -> Self {
788+ unreachable ! ( )
789+ }
790+
791+ pub ( crate ) fn into_val ( self ) -> Val {
792+ unreachable ! ( )
793+ }
794+
795+ pub ( crate ) fn lower < T > (
796+ & self ,
797+ _cx : & mut LowerContext < ' _ , T > ,
798+ _ty : InterfaceType ,
799+ _dst : & mut MaybeUninit < <u32 as ComponentType >:: Lower > ,
800+ ) -> Result < ( ) > {
801+ unreachable ! ( )
802+ }
803+
804+ pub ( crate ) fn store < T > (
805+ & self ,
806+ _cx : & mut LowerContext < ' _ , T > ,
807+ _ty : InterfaceType ,
808+ _offset : usize ,
809+ ) -> Result < ( ) > {
810+ unreachable ! ( )
811+ }
812+
813+ pub ( crate ) fn lift (
814+ _cx : & mut LiftContext < ' _ > ,
815+ _ty : InterfaceType ,
816+ _src : & <u32 as ComponentType >:: Lower ,
817+ ) -> Result < Self > {
818+ unreachable ! ( )
819+ }
820+
821+ pub ( crate ) fn load (
822+ _cx : & mut LiftContext < ' _ > ,
823+ _ty : InterfaceType ,
824+ _bytes : & [ u8 ] ,
825+ ) -> Result < Self > {
826+ unreachable ! ( )
827+ }
828+ }
829+ }
0 commit comments