MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / to_bytes

Method to_bytes

atomic-core/src/change/session.rs:255–257  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

253
254impl ManagedTurnOutcome {
255 pub fn to_bytes(&self) -> Vec<u8> {
256 postcard::to_allocvec(self).expect("ManagedTurnOutcome serialization")
257 }
258
259 pub fn from_bytes(bytes: &[u8]) -> Result<Self, postcard::Error> {
260 postcard::from_bytes(bytes)

Calls

no outgoing calls