pub enum NfcRejection {
NoCard,
ReadOnly,
NotEmpty,
}Expand description
Why an NFC reader refused a write or a lock.
Variants§
NoCard
No card is on the reader; the shim waits for the next tap and tries again.
ReadOnly
The card is read-only (NotAllowedError).
NotEmpty
The card has data and the write asked not to overwrite it (NotAllowedError).
Trait Implementations§
Source§impl Clone for NfcRejection
impl Clone for NfcRejection
impl Copy for NfcRejection
Source§impl Debug for NfcRejection
impl Debug for NfcRejection
Source§impl<'de> Deserialize<'de> for NfcRejection
impl<'de> Deserialize<'de> for NfcRejection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NfcRejection
Source§impl PartialEq for NfcRejection
impl PartialEq for NfcRejection
Source§impl Serialize for NfcRejection
impl Serialize for NfcRejection
impl StructuralPartialEq for NfcRejection
Auto Trait Implementations§
impl Freeze for NfcRejection
impl RefUnwindSafe for NfcRejection
impl Send for NfcRejection
impl Sync for NfcRejection
impl Unpin for NfcRejection
impl UnsafeUnpin for NfcRejection
impl UnwindSafe for NfcRejection
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