#[repr(u8)]pub enum Protect {
DISABLED = 0,
NFC = 1,
}
Variants§
DISABLED = 0
Operation as GPIO pins. Same protection as normal GPIO pins
NFC = 1
Operation as NFC antenna pins. Configures the protection for NFC operation
Implementations§
Trait Implementations§
Source§impl Ord for Protect
impl Ord for Protect
Source§impl PartialOrd for Protect
impl PartialOrd for Protect
impl Copy for Protect
impl Eq for Protect
impl StructuralPartialEq for Protect
Auto Trait Implementations§
impl Freeze for Protect
impl RefUnwindSafe for Protect
impl Send for Protect
impl Sync for Protect
impl Unpin for Protect
impl UnwindSafe for Protect
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§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
)