(&self)
| 200 | |
| 201 | impl SessionRecord { |
| 202 | pub fn to_bytes(&self) -> Vec<u8> { |
| 203 | postcard::to_allocvec(self).expect("SessionRecord serialization") |
| 204 | } |
| 205 | |
| 206 | pub fn from_bytes(bytes: &[u8]) -> Result<Self, postcard::Error> { |
| 207 | postcard::from_bytes(bytes) |
no outgoing calls