#[non_exhaustive]pub enum FwCfgWriteError {
DmaNotAvailable,
DmaFailed,
}Expand description
An enum type for [FwCfg::write_file] errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DmaNotAvailable
This fw_cfg device does not support DMA access, which is necessary for writing since QEMU v2.4.
Note: writing through the data register for older QEMU versions is not supported by this crate.
DmaFailed
Something went wrong during a DMA write
Trait Implementations§
Source§impl Debug for FwCfgWriteError
impl Debug for FwCfgWriteError
Source§impl PartialEq for FwCfgWriteError
impl PartialEq for FwCfgWriteError
impl Eq for FwCfgWriteError
impl StructuralPartialEq for FwCfgWriteError
Auto Trait Implementations§
impl Freeze for FwCfgWriteError
impl RefUnwindSafe for FwCfgWriteError
impl Send for FwCfgWriteError
impl Sync for FwCfgWriteError
impl Unpin for FwCfgWriteError
impl UnwindSafe for FwCfgWriteError
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