cloud-hypervisor/block/src
Philipp Schuster 01761c2596 misc: block: streamline #[source] and Error
This streamlines the code base to follow best practices for
error handling in Rust: Each error struct implements
std::error::Error (most due via thiserror::Error derive macro)
and sets its source accordingly.

This allows future work that nicely prints the error chains,
for example.

So far, the convention is that each error prints its
sub error as part of its Display::fmt() impl.

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP philipp.schuster@sap.com
2025-05-21 09:09:30 +00:00
..
qcow misc: block: streamline #[source] and Error 2025-05-21 09:09:30 +00:00
vhdx misc: block: streamline #[source] and Error 2025-05-21 09:09:30 +00:00
async_io.rs block: bind FD lifetime of DiskFile 2025-05-16 08:07:32 +00:00
fcntl.rs block: add fcntl module for locking 2025-05-16 08:07:32 +00:00
fixed_vhd.rs misc: Adapt consistent import style formatting 2024-09-29 13:08:12 +01:00
fixed_vhd_async.rs block: bind FD lifetime of DiskFile 2025-05-16 08:07:32 +00:00
fixed_vhd_sync.rs block: bind FD lifetime of DiskFile 2025-05-16 08:07:32 +00:00
lib.rs misc: block: streamline #[source] and Error 2025-05-21 09:09:30 +00:00
qcow_sync.rs block: bind FD lifetime of DiskFile 2025-05-16 08:07:32 +00:00
raw_async.rs block: bind FD lifetime of DiskFile 2025-05-16 08:07:32 +00:00
raw_async_aio.rs block: bind FD lifetime of DiskFile 2025-05-16 08:07:32 +00:00
raw_sync.rs block: bind FD lifetime of DiskFile 2025-05-16 08:07:32 +00:00
vhd.rs misc: Adapt consistent import style formatting 2024-09-29 13:08:12 +01:00
vhdx_sync.rs block: bind FD lifetime of DiskFile 2025-05-16 08:07:32 +00:00