esp_hal

Trait Persistable

Source
pub unsafe trait Persistable: Sized { }
Available on crate feature unstable only.
Expand description

Marker trait for types that can be safely used in #[ram(persistent)].

§Safety

  • The type must be inhabited
  • The type must be valid for any bit pattern of its backing memory in case a reset occurs during a write or a reset interrupts the zero initialization on first boot.
  • Structs must contain only Persistable fields and padding

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Persistable for AtomicI8

Source§

impl Persistable for AtomicI16

Source§

impl Persistable for AtomicI32

Source§

impl Persistable for AtomicIsize

Source§

impl Persistable for AtomicU8

Source§

impl Persistable for AtomicU16

Source§

impl Persistable for AtomicU32

Source§

impl Persistable for AtomicUsize

Source§

impl Persistable for f32

Source§

impl Persistable for f64

Source§

impl Persistable for i8

Source§

impl Persistable for i16

Source§

impl Persistable for i32

Source§

impl Persistable for i64

Source§

impl Persistable for i128

Source§

impl Persistable for isize

Source§

impl Persistable for u8

Source§

impl Persistable for u16

Source§

impl Persistable for u32

Source§

impl Persistable for u64

Source§

impl Persistable for u128

Source§

impl Persistable for usize

Source§

impl<T: Persistable, const N: usize> Persistable for [T; N]

Implementors§