pub enum SaveType {
None,
Eeprom4k,
Eeprom16k,
Sram,
FlashRam,
ControllerPak,
}Expand description
On-cartridge non-volatile save backend type.
Detected from the per-game database (the IPL/ROM has no reliable in-header
save-type field, unlike the iNES mapper byte) — keyed off the cart serial /
CRC. None means the title saves only to the Controller Pak (or not at all).
Variants§
None
No on-cart save chip.
Eeprom4k
4 Kbit serial EEPROM (512 bytes).
Eeprom16k
16 Kbit serial EEPROM (2 KiB).
Sram
256 Kbit battery-backed SRAM (32 KiB).
FlashRam
1 Mbit FlashRAM (128 KiB).
ControllerPak
Removable Controller Pak / Memory Pak (32 KiB, via the SI joybus).
Implementations§
Source§impl SaveType
impl SaveType
Sourcepub const fn size_bytes(self) -> usize
pub const fn size_bytes(self) -> usize
Backing-store size in bytes (0 for SaveType::None).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SaveType
impl<'de> Deserialize<'de> for SaveType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for SaveType
impl Eq for SaveType
impl StructuralPartialEq for SaveType
Auto Trait Implementations§
impl Freeze for SaveType
impl RefUnwindSafe for SaveType
impl Send for SaveType
impl Sync for SaveType
impl Unpin for SaveType
impl UnsafeUnpin for SaveType
impl UnwindSafe for SaveType
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