#[repr(u8)]pub enum OperationError {
Unspecified = 0,
Invalidcredential = 1,
Disableduserdenied = 2,
Restricted = 3,
Insufficientbattery = 4,
}Variants§
Unspecified = 0
Lock/unlock error caused by unknown or unspecified source
Invalidcredential = 1
Lock/unlock error caused by invalid PIN, RFID, fingerprint or other credential
Disableduserdenied = 2
Lock/unlock error caused by disabled USER or credential
Restricted = 3
Lock/unlock error caused by schedule restriction
Insufficientbattery = 4
Lock/unlock error caused by insufficient battery power left to safely actuate the lock
Implementations§
Trait Implementations§
Source§impl Clone for OperationError
impl Clone for OperationError
Source§fn clone(&self) -> OperationError
fn clone(&self) -> OperationError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperationError
impl Debug for OperationError
Source§impl<'de> Deserialize<'de> for OperationError
impl<'de> Deserialize<'de> for OperationError
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
Source§impl From<OperationError> for u8
impl From<OperationError> for u8
Source§fn from(val: OperationError) -> Self
fn from(val: OperationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OperationError
impl PartialEq for OperationError
Source§impl Serialize for OperationError
impl Serialize for OperationError
impl Copy for OperationError
impl Eq for OperationError
impl StructuralPartialEq for OperationError
Auto Trait Implementations§
impl Freeze for OperationError
impl RefUnwindSafe for OperationError
impl Send for OperationError
impl Sync for OperationError
impl Unpin for OperationError
impl UnwindSafe for OperationError
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