Deserialize a payload from postcard bytes. This is a convenience wrapper around [`postcard::from_bytes`]. The caller typically decompresses the section data with zstd before calling this. # Errors Returns [`super::error::FormatError::Postcard`] if deserialization fails.
(bytes: &[u8])
| 291 | /// |
| 292 | /// Returns [`super::error::FormatError::Postcard`] if deserialization fails. |
| 293 | pub fn from_postcard_bytes(bytes: &[u8]) -> FormatResult<Self> { |
| 294 | Ok(postcard::from_bytes(bytes)?) |
| 295 | } |
| 296 | |
| 297 | /// Consume this payload and return its parts. |
| 298 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected