pub enum HwaddrOperationResult {
Ok = 0,
Error = 1,
DeviceError = 2,
AccessDenied = 3,
InvalidAddress = 4,
InvalidAddressSpace = 5,
}
Expand description
The result of a hardware operation
Variants§
Ok = 0
Operation completed successfully
Error = 1
Unspecified error
DeviceError = 2
Device error
AccessDenied = 3
Access denied
InvalidAddress = 4
Invalid address
InvalidAddressSpace = 5
Invalid address space
Trait Implementations§
Source§impl Clone for HwaddrOperationResult
impl Clone for HwaddrOperationResult
Source§fn clone(&self) -> HwaddrOperationResult
fn clone(&self) -> HwaddrOperationResult
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 HwaddrOperationResult
impl Debug for HwaddrOperationResult
Source§impl Display for HwaddrOperationResult
impl Display for HwaddrOperationResult
Source§impl Error for HwaddrOperationResult
impl Error for HwaddrOperationResult
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<qemu_plugin_hwaddr_operation_result> for HwaddrOperationResult
impl From<qemu_plugin_hwaddr_operation_result> for HwaddrOperationResult
Source§fn from(value: qemu_plugin_hwaddr_operation_result) -> Self
fn from(value: qemu_plugin_hwaddr_operation_result) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HwaddrOperationResult
impl PartialEq for HwaddrOperationResult
impl Copy for HwaddrOperationResult
impl Eq for HwaddrOperationResult
impl StructuralPartialEq for HwaddrOperationResult
Auto Trait Implementations§
impl Freeze for HwaddrOperationResult
impl RefUnwindSafe for HwaddrOperationResult
impl Send for HwaddrOperationResult
impl Sync for HwaddrOperationResult
impl Unpin for HwaddrOperationResult
impl UnwindSafe for HwaddrOperationResult
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