@@ -777,7 +777,7 @@ impl Client {
777
777
/// ```
778
778
pub fn add_event_handler < Ev , Ctx , H > ( & self , handler : H ) -> EventHandlerHandle
779
779
where
780
- Ev : SyncEvent + DeserializeOwned + Send + ' static ,
780
+ Ev : SyncEvent + DeserializeOwned + SendOutsideWasm + ' static ,
781
781
H : EventHandler < Ev , Ctx > ,
782
782
{
783
783
self . add_event_handler_impl ( handler, None )
@@ -799,7 +799,7 @@ impl Client {
799
799
handler : H ,
800
800
) -> EventHandlerHandle
801
801
where
802
- Ev : SyncEvent + DeserializeOwned + Send + ' static ,
802
+ Ev : SyncEvent + DeserializeOwned + SendOutsideWasm + ' static ,
803
803
H : EventHandler < Ev , Ctx > ,
804
804
{
805
805
self . add_event_handler_impl ( handler, Some ( room_id. to_owned ( ) ) )
@@ -839,8 +839,8 @@ impl Client {
839
839
/// [`EventHandlerSubscriber`]: crate::event_handler::EventHandlerSubscriber
840
840
pub fn observe_events < Ev , Ctx > ( & self ) -> ObservableEventHandler < ( Ev , Ctx ) >
841
841
where
842
- Ev : SyncEvent + DeserializeOwned + Send + Sync + ' static ,
843
- Ctx : EventHandlerContext + Send + Sync + ' static ,
842
+ Ev : SyncEvent + DeserializeOwned + SendOutsideWasm + SyncOutsideWasm + ' static ,
843
+ Ctx : EventHandlerContext + SendOutsideWasm + SyncOutsideWasm + ' static ,
844
844
{
845
845
self . observe_room_events_impl ( None )
846
846
}
@@ -856,8 +856,8 @@ impl Client {
856
856
room_id : & RoomId ,
857
857
) -> ObservableEventHandler < ( Ev , Ctx ) >
858
858
where
859
- Ev : SyncEvent + DeserializeOwned + Send + Sync + ' static ,
860
- Ctx : EventHandlerContext + Send + Sync + ' static ,
859
+ Ev : SyncEvent + DeserializeOwned + SendOutsideWasm + SyncOutsideWasm + ' static ,
860
+ Ctx : EventHandlerContext + SendOutsideWasm + SyncOutsideWasm + ' static ,
861
861
{
862
862
self . observe_room_events_impl ( Some ( room_id. to_owned ( ) ) )
863
863
}
@@ -869,8 +869,8 @@ impl Client {
869
869
room_id : Option < OwnedRoomId > ,
870
870
) -> ObservableEventHandler < ( Ev , Ctx ) >
871
871
where
872
- Ev : SyncEvent + DeserializeOwned + Send + Sync + ' static ,
873
- Ctx : EventHandlerContext + Send + Sync + ' static ,
872
+ Ev : SyncEvent + DeserializeOwned + SendOutsideWasm + SyncOutsideWasm + ' static ,
873
+ Ctx : EventHandlerContext + SendOutsideWasm + SyncOutsideWasm + ' static ,
874
874
{
875
875
// The default value is `None`. It becomes `Some((Ev, Ctx))` once it has a
876
876
// new value.
0 commit comments