pub struct IrqFlag { /* private fields */ }
Expand description

Opaque structure for storing the global interrupt flag status.

This structure does not implement Copy and Clone, because the user shall not duplicate and pass it twice to crate::interrupt::restore.

Implementations§

Check the status of the saved global interrupt flag.

Returns true, if the saved global interrupt flag is set (IRQs enabled). Otherwise returns false.

This method can be used to check whether interrupts were enabled before the crate::interrupt::disable_save call. You probably shouldn’t make your program behavior dependent on this state. Consider using a different design.

Trait Implementations§

Formats the value using the given formatter. Read more
Formats the value using the given formatter

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.