pub struct MessagePackSerializationStrategy;Expand description
MessagePack-encoded SceneRecipe. Identifier KH_MESSAGEPACK_V1.
Implementations§
Trait Implementations§
Source§impl SerializationStrategy for MessagePackSerializationStrategy
impl SerializationStrategy for MessagePackSerializationStrategy
Source§fn get_strategy_id(&self) -> &'static str
fn get_strategy_id(&self) -> &'static str
Returns the unique, versioned string identifier for this strategy. Read more
Source§fn serialize(&self, world: &World) -> Result<Vec<u8>, SerializationError>
fn serialize(&self, world: &World) -> Result<Vec<u8>, SerializationError>
Serializes the given
World into a byte payload. Read moreSource§fn deserialize(
&self,
data: &[u8],
world: &mut World,
) -> Result<(), DeserializationError>
fn deserialize( &self, data: &[u8], world: &mut World, ) -> Result<(), DeserializationError>
Deserializes data from a byte payload to populate the given
World. Read moreAuto Trait Implementations§
impl Freeze for MessagePackSerializationStrategy
impl RefUnwindSafe for MessagePackSerializationStrategy
impl Send for MessagePackSerializationStrategy
impl Sync for MessagePackSerializationStrategy
impl Unpin for MessagePackSerializationStrategy
impl UnsafeUnpin for MessagePackSerializationStrategy
impl UnwindSafe for MessagePackSerializationStrategy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more