#[repr(u32)]
#[non_exhaustive]
pub enum retro_savestate_context {
RETRO_SAVESTATE_CONTEXT_NORMAL,
RETRO_SAVESTATE_CONTEXT_RUNAHEAD_SAME_INSTANCE,
RETRO_SAVESTATE_CONTEXT_RUNAHEAD_SAME_BINARY,
RETRO_SAVESTATE_CONTEXT_ROLLBACK_NETPLAY,
RETRO_SAVESTATE_CONTEXT_UNKNOWN,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RETRO_SAVESTATE_CONTEXT_NORMAL
Standard savestate written to disk.
RETRO_SAVESTATE_CONTEXT_RUNAHEAD_SAME_INSTANCE
Savestate where you are guaranteed that the same instance will load the save state. You can store internal pointers to code or data. It’s still a full serialization and deserialization, and could be loaded or saved at any time. It won’t be written to disk or sent over the network.
RETRO_SAVESTATE_CONTEXT_RUNAHEAD_SAME_BINARY
Savestate where you are guaranteed that the same emulator binary will load that savestate. You can skip anything that would slow down saving or loading state but you can not store internal pointers. It won’t be written to disk or sent over the network. Example: “Second Instance” runahead
RETRO_SAVESTATE_CONTEXT_ROLLBACK_NETPLAY
Savestate used within a rollback netplay feature. You should skip anything that would unnecessarily increase bandwidth usage. It won’t be written to disk but it will be sent over the network.
RETRO_SAVESTATE_CONTEXT_UNKNOWN
Ensure sizeof() == sizeof(int).
Trait Implementations§
source§impl Clone for retro_savestate_context
impl Clone for retro_savestate_context
source§fn clone(&self) -> retro_savestate_context
fn clone(&self) -> retro_savestate_context
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for retro_savestate_context
impl Debug for retro_savestate_context
source§impl Hash for retro_savestate_context
impl Hash for retro_savestate_context
source§impl PartialEq<retro_savestate_context> for retro_savestate_context
impl PartialEq<retro_savestate_context> for retro_savestate_context
source§fn eq(&self, other: &retro_savestate_context) -> bool
fn eq(&self, other: &retro_savestate_context) -> bool
self
and other
values to be equal, and is used
by ==
.