You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I trying to write a websocket client and place it inside an actix actor.
I've had a couple of problems along the way, and I've probably been bugging people more than I usually do, but this one seems hard to work around.
When I try to use the Framed type to save some value into a struct, I get this:
I tried to look at older versions of some of the actix-codec dependency, but couldn't really find the structure that the error mentions, actix_codec::framed::Framed.
Any help here would be very useful,
Thank you,
Fabricio
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I trying to write a websocket client and place it inside an actix actor.
I've had a couple of problems along the way, and I've probably been bugging people more than I usually do, but this one seems hard to work around.
When I try to use the Framed type to save some value into a struct, I get this:
So, for example, here's my struct:
And here's the actor implementation:
The error happens on
self.sink = Option::Some(w);
My dependencies are:
I tried to look at older versions of some of the actix-codec dependency, but couldn't really find the structure that the error mentions, actix_codec::framed::Framed.
Any help here would be very useful,
Thank you,
Fabricio
Beta Was this translation helpful? Give feedback.
All reactions