This small PR removes the Arc wrapper around Session.
Arc is for shared ownership, but there is only a single owner for Sessions, the Backend.
I opened a PR to make sure there isn't some unintended consequence to removing this wrapper.
Without Arc, it's now possible to get mutable references to the Session.
It also removes a back-reference where Session held a reference to the Client it was created from.
But this is minor.
This small PR removes the
Arc
wrapper aroundSession
.Arc
is for shared ownership, but there is only a single owner forSession
s, theBackend
.I opened a PR to make sure there isn't some unintended consequence to removing this wrapper. Without
Arc
, it's now possible to get mutable references to theSession
.It also removes a back-reference where
Session
held a reference to theClient
it was created from. But this is minor.