critical_section

Type Alias RawRestoreState

Source
pub type RawRestoreState = ();
Expand description

Raw, transparent “restore state”.

This type changes based on which Cargo feature is selected, out of

  • restore-state-none (default, makes the type be ())
  • restore-state-bool
  • restore-state-u8
  • restore-state-u16
  • restore-state-u32
  • restore-state-u64
  • restore-state-usize

See RestoreState.

User code uses RestoreState opaquely, critical section implementations use RawRestoreState so that they can use the inner value.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 0 bytes