pub struct CpuRetentionStorage { /* private fields */ }unstable only.Expand description
Memory that light sleep uses to retain the CPU domain.
This storage must be placed to #[ram(reclaimed, unstable(zeroed))], then
a static mutable reference to CpuRetentionMemory can be taken out of it.
§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.
Implementations§
Source§impl CpuRetentionStorage
impl CpuRetentionStorage
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates storage for the retention memory.
§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.
Sourcepub fn take(&'static self) -> &'static mut CpuRetentionMemory
pub fn take(&'static self) -> &'static mut CpuRetentionMemory
Takes the reference to the retention memory.
Can only be called once.
§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.
Trait Implementations§
Source§impl Default for CpuRetentionStorage
§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.
impl Default for CpuRetentionStorage
§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.