Enum Protect
#[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§
impl Copy for Protect
impl Eq for Protect
§impl Ord for Protect
impl Ord for Protect
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialOrd for Protect
impl PartialOrd 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 UnsafeUnpin 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