#[repr(u8)]pub enum ReturnCode {
Reserved = 0,
HwFault = 1,
NotAllow = 3,
InvalidAddress = 5,
NotSupported = 6,
SizeMismatch = 7,
Err = 10,
Success = 255,
}
Variants§
Reserved = 0
0
HwFault = 1
Hardware error
NotAllow = 3
Accessing the object not allowed
InvalidAddress = 5
Invalid address
NotSupported = 6
Data type not supported
SizeMismatch = 7
Data type inconsistent
Err = 10
Object does not exist
Success = 255
Success
Trait Implementations§
Source§impl Debug for ReturnCode
impl Debug for ReturnCode
Source§impl From<ReturnCode> for u8
impl From<ReturnCode> for u8
Source§fn from(enum_value: ReturnCode) -> Self
fn from(enum_value: ReturnCode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReturnCode
impl PartialEq for ReturnCode
Source§impl TryFrom<u8> for ReturnCode
impl TryFrom<u8> for ReturnCode
Source§type Error = TryFromPrimitiveError<ReturnCode>
type Error = TryFromPrimitiveError<ReturnCode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ReturnCode
impl TryFromPrimitive for ReturnCode
impl Eq for ReturnCode
impl StructuralPartialEq for ReturnCode
Auto Trait Implementations§
impl Freeze for ReturnCode
impl RefUnwindSafe for ReturnCode
impl Send for ReturnCode
impl Sync for ReturnCode
impl Unpin for ReturnCode
impl UnwindSafe for ReturnCode
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