Decode current milliseconds and historical seconds without changing the serialized turn or the content-addressed manifest that contains it.
(&self)
| 691 | /// Decode current milliseconds and historical seconds without changing the |
| 692 | /// serialized turn or the content-addressed manifest that contains it. |
| 693 | pub fn timestamp_datetime(&self) -> Option<chrono::DateTime<chrono::Utc>> { |
| 694 | crate::types::timestamp::epoch_datetime(self.timestamp) |
| 695 | } |
| 696 | |
| 697 | pub fn to_bytes(&self) -> Vec<u8> { |
| 698 | postcard::to_allocvec(self).expect("SessionTurn serialization") |
no test coverage detected