Enum d1_pac::spinlock::spinlock_lock::TAKEN_A
source · pub enum TAKEN_A {
FREE = 0,
TAKEN = 1,
}
Expand description
Lock State
Value on reset: 0
Variants§
FREE = 0
0: Read 0x0: The lock was previously Not Taken (free). The requester is granted the lock.
Write 0x0: Set the lock to Not Taken (free).
TAKEN = 1
1: Read 0x1: The lock was previously Taken. The requester is not granted the lock and must retry.
Write 0x1: No update to the lock value.
Trait Implementations§
impl Copy for TAKEN_A
impl Eq for TAKEN_A
impl StructuralPartialEq for TAKEN_A
Auto Trait Implementations§
impl Freeze for TAKEN_A
impl RefUnwindSafe for TAKEN_A
impl Send for TAKEN_A
impl Sync for TAKEN_A
impl Unpin for TAKEN_A
impl UnwindSafe for TAKEN_A
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)