Returns a mutable reference to the session bound to this client.
(&mut self)
| 1275 | |
| 1276 | /// Returns a mutable reference to the session bound to this client. |
| 1277 | pub fn session(&mut self) -> &mut Session { |
| 1278 | self.session.as_mut().expect("session invariant violated") |
| 1279 | } |
| 1280 | |
| 1281 | /// Returns a reference to the inner client. |
| 1282 | pub fn inner(&self) -> &Client { |