Coverage Report

Created: 2026-04-09 06:25

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/rust/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.58/src/context.rs
Line
Count
Source
1
use crate::error::ContextError;
2
use crate::{Context, Error, StdError};
3
use core::convert::Infallible;
4
use core::fmt::{self, Debug, Display, Write};
5
6
#[cfg(backtrace)]
7
use std::backtrace::Backtrace;
8
9
mod ext {
10
    use super::*;
11
12
    pub trait StdError {
13
        fn ext_context<C>(self, context: C) -> Error
14
        where
15
            C: Display + Send + Sync + 'static;
16
    }
17
18
    #[cfg(feature = "std")]
19
    impl<E> StdError for E
20
    where
21
        E: std::error::Error + Send + Sync + 'static,
22
    {
23
0
        fn ext_context<C>(self, context: C) -> Error
24
0
        where
25
0
            C: Display + Send + Sync + 'static,
26
        {
27
0
            let backtrace = backtrace_if_absent!(self);
28
0
            Error::from_context(context, self, backtrace)
29
0
        }
Unexecuted instantiation: <vm_control::api::ApiClientError as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <vm_memory::guest_memory::Error as anyhow::context::ext::StdError>::ext_context::<alloc::string::String>
Unexecuted instantiation: <vm_memory::guest_memory::Error as anyhow::context::ext::StdError>::ext_context::<devices::pci::coiommu::Error>
Unexecuted instantiation: <vm_memory::guest_memory::Error as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <devices::virtio::iommu::IommuError as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <base::mmap::Error as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <base::tube::Error as anyhow::context::ext::StdError>::ext_context::<alloc::string::String>
Unexecuted instantiation: <ciborium::ser::error::Error<std::io::error::Error> as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <cros_async::io_ext::AsyncError as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <devices::virtio::vhost_user_frontend::error::Error as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <std::time::SystemTimeError as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <devices::irqchip::ioapic::IoapicError as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <ciborium::de::error::Error<std::io::error::Error> as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <devices::vfio::VfioError as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <resources::Error as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <vmm_vhost::Error as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <vhost::Error as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <devices::pci::pci_device::Error as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest> as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <std::sync::mpsc::RecvError as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <disk::Error as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <devices::virtio::block::asynchronous::ControlError as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <devices::virtio::block::asynchronous::ExecuteError as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <base::errno::Error as anyhow::context::ext::StdError>::ext_context::<alloc::string::String>
Unexecuted instantiation: <base::errno::Error as anyhow::context::ext::StdError>::ext_context::<devices::pci::coiommu::Error>
Unexecuted instantiation: <minijail::Error as anyhow::context::ext::StdError>::ext_context::<alloc::string::String>
Unexecuted instantiation: <minijail::Error as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <base::tube::Error as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <rutabaga_gfx::rutabaga_utils::RutabagaError as anyhow::context::ext::StdError>::ext_context::<alloc::string::String>
Unexecuted instantiation: <base::errno::Error as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <std::io::error::Error as anyhow::context::ext::StdError>::ext_context::<alloc::string::String>
Unexecuted instantiation: <std::io::error::Error as anyhow::context::ext::StdError>::ext_context::<&str>
Unexecuted instantiation: <_ as anyhow::context::ext::StdError>::ext_context::<_>
30
    }
31
32
    impl StdError for Error {
33
352
        fn ext_context<C>(self, context: C) -> Error
34
352
        where
35
352
            C: Display + Send + Sync + 'static,
36
        {
37
352
            self.context(context)
38
352
        }
Unexecuted instantiation: <anyhow::Error as anyhow::context::ext::StdError>::ext_context::<alloc::string::String>
<anyhow::Error as anyhow::context::ext::StdError>::ext_context::<&str>
Line
Count
Source
33
352
        fn ext_context<C>(self, context: C) -> Error
34
352
        where
35
352
            C: Display + Send + Sync + 'static,
36
        {
37
352
            self.context(context)
38
352
        }
Unexecuted instantiation: <anyhow::Error as anyhow::context::ext::StdError>::ext_context::<_>
39
    }
40
}
41
42
impl<T, E> Context<T, E> for Result<T, E>
43
where
44
    E: ext::StdError + Send + Sync + 'static,
45
{
46
1.13M
    fn context<C>(self, context: C) -> Result<T, Error>
47
1.13M
    where
48
1.13M
        C: Display + Send + Sync + 'static,
49
    {
50
1.13M
        self.map_err(|error| error.ext_context(context))
Unexecuted instantiation: <core::result::Result<core::result::Result<(), anyhow::Error>, std::sync::mpsc::RecvError> as anyhow::Context<core::result::Result<(), anyhow::Error>, std::sync::mpsc::RecvError>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<smallvec::SmallVec<[base::wait_context::TriggeredEvent<<devices::vmwdt::Vmwdt>::vmwdt_worker_thread::Token>; 16]>, base::errno::Error> as anyhow::Context<smallvec::SmallVec<[base::wait_context::TriggeredEvent<<devices::vmwdt::Vmwdt>::vmwdt_worker_thread::Token>; 16]>, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<smallvec::SmallVec<[base::wait_context::TriggeredEvent<<devices::virtio::rng::Worker>::run::Token>; 16]>, base::errno::Error> as anyhow::Context<smallvec::SmallVec<[base::wait_context::TriggeredEvent<<devices::virtio::rng::Worker>::run::Token>; 16]>, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<smallvec::SmallVec<[base::wait_context::TriggeredEvent<<devices::virtio::vhost_user_frontend::worker::Worker>::run::Token>; 16]>, base::errno::Error> as anyhow::Context<smallvec::SmallVec<[base::wait_context::TriggeredEvent<<devices::virtio::vhost_user_frontend::worker::Worker>::run::Token>; 16]>, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<smallvec::SmallVec<[base::wait_context::TriggeredEvent<devices::virtcpufreq_v2::vcpufreq_worker_thread::Token>; 16]>, base::errno::Error> as anyhow::Context<smallvec::SmallVec<[base::wait_context::TriggeredEvent<devices::virtcpufreq_v2::vcpufreq_worker_thread::Token>; 16]>, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<smallvec::SmallVec<[base::wait_context::TriggeredEvent<devices::cmos::run_cmos_worker::Token>; 16]>, base::errno::Error> as anyhow::Context<smallvec::SmallVec<[base::wait_context::TriggeredEvent<devices::cmos::run_cmos_worker::Token>; 16]>, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<smallvec::SmallVec<[base::wait_context::TriggeredEvent<devices::virtio::console::sys::linux::read_input::Token>; 16]>, base::errno::Error> as anyhow::Context<smallvec::SmallVec<[base::wait_context::TriggeredEvent<devices::virtio::console::sys::linux::read_input::Token>; 16]>, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<core::option::Option<vmm_vhost::connection::Connection>, vmm_vhost::Error> as anyhow::Context<core::option::Option<vmm_vhost::connection::Connection>, vmm_vhost::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<core::option::Option<std::fs::File>, vmm_vhost::Error> as anyhow::Context<core::option::Option<std::fs::File>, vmm_vhost::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<core::option::Option<devices::virtio::queue::Queue>, std::sync::mpsc::RecvError> as anyhow::Context<core::option::Option<devices::virtio::queue::Queue>, std::sync::mpsc::RecvError>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<core::option::Option<base::sys::unix::tube::Tube>, anyhow::Error> as anyhow::Context<core::option::Option<base::sys::unix::tube::Tube>, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<base::wait_context::WaitContext<devices::virtio::console::worker::Token>, base::errno::Error> as anyhow::Context<base::wait_context::WaitContext<devices::virtio::console::worker::Token>, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<base::wait_context::WaitContext<<devices::vmwdt::Vmwdt>::vmwdt_worker_thread::Token>, base::errno::Error> as anyhow::Context<base::wait_context::WaitContext<<devices::vmwdt::Vmwdt>::vmwdt_worker_thread::Token>, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<base::wait_context::WaitContext<<devices::virtio::rng::Worker>::run::Token>, base::errno::Error> as anyhow::Context<base::wait_context::WaitContext<<devices::virtio::rng::Worker>::run::Token>, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<base::wait_context::WaitContext<<devices::virtio::vhost_user_frontend::worker::Worker>::run::Token>, base::errno::Error> as anyhow::Context<base::wait_context::WaitContext<<devices::virtio::vhost_user_frontend::worker::Worker>::run::Token>, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<base::wait_context::WaitContext<<devices::virtio::wl::Worker>::run::Token>, base::errno::Error> as anyhow::Context<base::wait_context::WaitContext<<devices::virtio::wl::Worker>::run::Token>, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<base::wait_context::WaitContext<devices::virtcpufreq_v2::vcpufreq_worker_thread::Token>, base::errno::Error> as anyhow::Context<base::wait_context::WaitContext<devices::virtcpufreq_v2::vcpufreq_worker_thread::Token>, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<base::wait_context::WaitContext<devices::cmos::run_cmos_worker::Token>, base::errno::Error> as anyhow::Context<base::wait_context::WaitContext<devices::cmos::run_cmos_worker::Token>, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<base::wait_context::WaitContext<devices::virtio::console::sys::linux::read_input::Token>, base::errno::Error> as anyhow::Context<base::wait_context::WaitContext<devices::virtio::console::sys::linux::read_input::Token>, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<cros_async::io_ext::AsyncWrapper<base::descriptor::SafeDescriptor>, base::errno::Error> as anyhow::Context<cros_async::io_ext::AsyncWrapper<base::descriptor::SafeDescriptor>, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<cros_async::io_ext::AsyncWrapper<base::descriptor::SafeDescriptor>, std::io::error::Error> as anyhow::Context<cros_async::io_ext::AsyncWrapper<base::descriptor::SafeDescriptor>, std::io::error::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<cros_async::io_source::IoSource<cros_async::io_ext::AsyncWrapper<base::descriptor::SafeDescriptor>>, cros_async::io_ext::AsyncError> as anyhow::Context<cros_async::io_source::IoSource<cros_async::io_ext::AsyncWrapper<base::descriptor::SafeDescriptor>>, cros_async::io_ext::AsyncError>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<cros_async::io_source::IoSource<cros_async::io_ext::AsyncWrapper<vmm_vhost::sys::unix::SocketListener>>, cros_async::io_ext::AsyncError> as anyhow::Context<cros_async::io_source::IoSource<cros_async::io_ext::AsyncWrapper<vmm_vhost::sys::unix::SocketListener>>, cros_async::io_ext::AsyncError>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<alloc::vec::Vec<devices::virtio::iommu::memory_mapper::MemRegion>, anyhow::Error> as anyhow::Context<alloc::vec::Vec<devices::virtio::iommu::memory_mapper::MemRegion>, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<alloc::boxed::Box<dyn disk::DiskFile>, disk::Error> as anyhow::Context<alloc::boxed::Box<dyn disk::DiskFile>, disk::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<alloc::boxed::Box<dyn disk::DiskFile>, std::io::error::Error> as anyhow::Context<alloc::boxed::Box<dyn disk::DiskFile>, std::io::error::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<alloc::boxed::Box<dyn disk::AsyncDisk>, disk::Error> as anyhow::Context<alloc::boxed::Box<dyn disk::AsyncDisk>, disk::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::virtio::vhost::worker::Worker<vhost::vsock::Vsock>, anyhow::Error> as anyhow::Context<devices::virtio::vhost::worker::Worker<vhost::vsock::Vsock>, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<vm_control::VmMemoryRegionId, vm_control::api::ApiClientError> as anyhow::Context<vm_control::VmMemoryRegionId, vm_control::api::ApiClientError>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<core::time::Duration, std::time::SystemTimeError> as anyhow::Context<core::time::Duration, std::time::SystemTimeError>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<base::descriptor::SafeDescriptor, std::io::error::Error> as anyhow::Context<base::descriptor::SafeDescriptor, std::io::error::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<base::shm::SharedMemory, base::errno::Error> as anyhow::Context<base::shm::SharedMemory, base::errno::Error>>::context::<devices::pci::coiommu::Error>::{closure#0}
Unexecuted instantiation: <core::result::Result<base::mmap::MemoryMapping, base::mmap::Error> as anyhow::Context<base::mmap::MemoryMapping, base::mmap::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<base::event::Event, base::errno::Error> as anyhow::Context<base::event::Event, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<base::timer::Timer, base::errno::Error> as anyhow::Context<base::timer::Timer, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, ciborium::de::error::Error<std::io::error::Error>> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, ciborium::de::error::Error<std::io::error::Error>>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, anyhow::Error> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::bat::GoldfishBatterySnapshot, anyhow::Error> as anyhow::Context<devices::bat::GoldfishBatterySnapshot, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::mock::MockDevice, anyhow::Error> as anyhow::Context<devices::mock::MockDevice, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::vmwdt::VmwdtRestore, anyhow::Error> as anyhow::Context<devices::vmwdt::VmwdtRestore, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::serial::SerialSnapshot, anyhow::Error> as anyhow::Context<devices::serial::SerialSnapshot, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::irq_event::IrqEdgeEvent, base::errno::Error> as anyhow::Context<devices::irq_event::IrqEdgeEvent, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::irq_event::IrqLevelEvent, base::errno::Error> as anyhow::Context<devices::irq_event::IrqLevelEvent, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<cros_async::event::EventAsync, cros_async::io_ext::AsyncError> as anyhow::Context<cros_async::event::EventAsync, cros_async::io_ext::AsyncError>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<cros_async::executor::Executor, cros_async::io_ext::AsyncError> as anyhow::Context<cros_async::executor::Executor, cros_async::io_ext::AsyncError>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::pci::pci_configuration::PciConfigurationSerialized, anyhow::Error> as anyhow::Context<devices::pci::pci_configuration::PciConfigurationSerialized, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::pci::coiommu::PinPageInfo, vm_memory::guest_memory::Error> as anyhow::Context<devices::pci::coiommu::PinPageInfo, vm_memory::guest_memory::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::pci::pci_root::PciRootSerializable, anyhow::Error> as anyhow::Context<devices::pci::pci_root::PciRootSerializable, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::tsc::grouping::CoreGrouping, anyhow::Error> as anyhow::Context<devices::tsc::grouping::CoreGrouping, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::virtio::pmem::PmemSnapshot, anyhow::Error> as anyhow::Context<devices::virtio::pmem::PmemSnapshot, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::virtio::queue::QueueConfigSnapshot, anyhow::Error> as anyhow::Context<devices::virtio::queue::QueueConfigSnapshot, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::virtio::queue::Queue, anyhow::Error> as anyhow::Context<devices::virtio::queue::Queue, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::irqchip::ioapic::IoapicSnapshot, anyhow::Error> as anyhow::Context<devices::irqchip::ioapic::IoapicSnapshot, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::irqchip::x86_64::IrqChipSnapshot, anyhow::Error> as anyhow::Context<devices::irqchip::x86_64::IrqChipSnapshot, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::pci::pcie::pcie_port::PciePort, devices::pci::pci_device::Error> as anyhow::Context<devices::pci::pcie::pcie_port::PciePort, devices::pci::pci_device::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::virtio::device_constants::console::virtio_console_control, std::io::error::Error> as anyhow::Context<devices::virtio::device_constants::console::virtio_console_control, std::io::error::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::virtio::vhost_user_backend::block::BlockBackendSnapshot, anyhow::Error> as anyhow::Context<devices::virtio::vhost_user_backend::block::BlockBackendSnapshot, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::virtio::scsi::device::Targets, std::io::error::Error> as anyhow::Context<devices::virtio::scsi::device::Targets, std::io::error::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::virtio::iommu::ipc_memory_mapper::IommuResponse, base::tube::Error> as anyhow::Context<devices::virtio::iommu::ipc_memory_mapper::IommuResponse, base::tube::Error>>::context::<&str>::{closure#0}
<core::result::Result<devices::virtio::queue::split_queue::SplitQueue, anyhow::Error> as anyhow::Context<devices::virtio::queue::split_queue::SplitQueue, anyhow::Error>>::context::<&str>::{closure#0}
Line
Count
Source
50
73
        self.map_err(|error| error.ext_context(context))
Unexecuted instantiation: <core::result::Result<devices::virtio::queue::packed_queue::PackedQueue, anyhow::Error> as anyhow::Context<devices::virtio::queue::packed_queue::PackedQueue, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::virtio::vhost::vsock::VsockSnapshot, anyhow::Error> as anyhow::Context<devices::virtio::vhost::vsock::VsockSnapshot, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::virtio::console::device::ConsoleSnapshot, anyhow::Error> as anyhow::Context<devices::virtio::console::device::ConsoleSnapshot, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::irqchip::kvm::x86_64::KvmSplitIrqChipSnapshot, anyhow::Error> as anyhow::Context<devices::irqchip::kvm::x86_64::KvmSplitIrqChipSnapshot, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::irqchip::kvm::x86_64::KvmKernelIrqChipSnapshot, anyhow::Error> as anyhow::Context<devices::irqchip::kvm::x86_64::KvmKernelIrqChipSnapshot, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<libc::unix::linux_like::linux::rlimit64, base::errno::Error> as anyhow::Context<libc::unix::linux_like::linux::rlimit64, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<<devices::cmos::Cmos as devices::suspendable::Suspendable>::restore::CmosIndex, anyhow::Error> as anyhow::Context<<devices::cmos::Cmos as devices::suspendable::Suspendable>::restore::CmosIndex, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<*const u8, vm_memory::guest_memory::Error> as anyhow::Context<*const u8, vm_memory::guest_memory::Error>>::context::<devices::pci::coiommu::Error>::{closure#0}
Unexecuted instantiation: <core::result::Result<*const u8, vm_memory::guest_memory::Error> as anyhow::Context<*const u8, vm_memory::guest_memory::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<(core::option::Option<i32>, std::process::ExitStatus), base::errno::Error> as anyhow::Context<(core::option::Option<i32>, std::process::ExitStatus), base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<(std::fs::File, std::fs::File), base::errno::Error> as anyhow::Context<(std::fs::File, std::fs::File), base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<bool, base::errno::Error> as anyhow::Context<bool, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<usize, base::errno::Error> as anyhow::Context<usize, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<usize, std::io::error::Error> as anyhow::Context<usize, std::io::error::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<u32, base::tube::Error> as anyhow::Context<u32, base::tube::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<u16, vhost::Error> as anyhow::Context<u16, vhost::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<u16, devices::virtio::vhost_user_frontend::error::Error> as anyhow::Context<u16, devices::virtio::vhost_user_frontend::error::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>> as anyhow::Context<(), std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), ciborium::ser::error::Error<std::io::error::Error>> as anyhow::Context<(), ciborium::ser::error::Error<std::io::error::Error>>>::context::<&str>::{closure#0}
<core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::context::<&str>::{closure#0}
Line
Count
Source
50
279
        self.map_err(|error| error.ext_context(context))
Unexecuted instantiation: <core::result::Result<(), vhost::Error> as anyhow::Context<(), vhost::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), vmm_vhost::Error> as anyhow::Context<(), vmm_vhost::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), devices::vfio::VfioError> as anyhow::Context<(), devices::vfio::VfioError>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), cros_async::io_ext::AsyncError> as anyhow::Context<(), cros_async::io_ext::AsyncError>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), vm_control::api::ApiClientError> as anyhow::Context<(), vm_control::api::ApiClientError>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), devices::virtio::iommu::IommuError> as anyhow::Context<(), devices::virtio::iommu::IommuError>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), devices::irqchip::ioapic::IoapicError> as anyhow::Context<(), devices::irqchip::ioapic::IoapicError>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), devices::virtio::block::asynchronous::ControlError> as anyhow::Context<(), devices::virtio::block::asynchronous::ControlError>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), devices::virtio::block::asynchronous::ExecuteError> as anyhow::Context<(), devices::virtio::block::asynchronous::ExecuteError>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<i64, base::errno::Error> as anyhow::Context<i64, base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<u64, resources::Error> as anyhow::Context<u64, resources::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<u64, devices::vfio::VfioError> as anyhow::Context<u64, devices::vfio::VfioError>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<u64, vm_memory::guest_memory::Error> as anyhow::Context<u64, vm_memory::guest_memory::Error>>::context::<devices::pci::coiommu::Error>::{closure#0}
Unexecuted instantiation: <core::result::Result<u64, vm_memory::guest_memory::Error> as anyhow::Context<u64, vm_memory::guest_memory::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<u64, std::io::error::Error> as anyhow::Context<u64, std::io::error::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<minijail::Minijail, minijail::Error> as anyhow::Context<minijail::Minijail, minijail::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), minijail::Error> as anyhow::Context<(), minijail::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<vm_control::VmResponse, base::tube::Error> as anyhow::Context<vm_control::VmResponse, base::tube::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), base::tube::Error> as anyhow::Context<(), base::tube::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), base::errno::Error> as anyhow::Context<(), base::errno::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<alloc::boxed::Box<crypto_generic::always_panic_impl::CryptWriter<std::fs::File>>, anyhow::Error> as anyhow::Context<alloc::boxed::Box<crypto_generic::always_panic_impl::CryptWriter<std::fs::File>>, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<crypto_generic::CryptKey, anyhow::Error> as anyhow::Context<crypto_generic::CryptKey, anyhow::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<std::fs::File, std::io::error::Error> as anyhow::Context<std::fs::File, std::io::error::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), std::io::error::Error> as anyhow::Context<(), std::io::error::Error>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::result::Result<_, _> as anyhow::Context<_, _>>::context::<_>::{closure#0}
51
1.13M
    }
Unexecuted instantiation: <core::result::Result<core::result::Result<(), anyhow::Error>, std::sync::mpsc::RecvError> as anyhow::Context<core::result::Result<(), anyhow::Error>, std::sync::mpsc::RecvError>>::context::<&str>
Unexecuted instantiation: <core::result::Result<smallvec::SmallVec<[base::wait_context::TriggeredEvent<<devices::vmwdt::Vmwdt>::vmwdt_worker_thread::Token>; 16]>, base::errno::Error> as anyhow::Context<smallvec::SmallVec<[base::wait_context::TriggeredEvent<<devices::vmwdt::Vmwdt>::vmwdt_worker_thread::Token>; 16]>, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<smallvec::SmallVec<[base::wait_context::TriggeredEvent<<devices::virtio::rng::Worker>::run::Token>; 16]>, base::errno::Error> as anyhow::Context<smallvec::SmallVec<[base::wait_context::TriggeredEvent<<devices::virtio::rng::Worker>::run::Token>; 16]>, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<smallvec::SmallVec<[base::wait_context::TriggeredEvent<<devices::virtio::vhost_user_frontend::worker::Worker>::run::Token>; 16]>, base::errno::Error> as anyhow::Context<smallvec::SmallVec<[base::wait_context::TriggeredEvent<<devices::virtio::vhost_user_frontend::worker::Worker>::run::Token>; 16]>, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<smallvec::SmallVec<[base::wait_context::TriggeredEvent<devices::virtcpufreq_v2::vcpufreq_worker_thread::Token>; 16]>, base::errno::Error> as anyhow::Context<smallvec::SmallVec<[base::wait_context::TriggeredEvent<devices::virtcpufreq_v2::vcpufreq_worker_thread::Token>; 16]>, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<smallvec::SmallVec<[base::wait_context::TriggeredEvent<devices::cmos::run_cmos_worker::Token>; 16]>, base::errno::Error> as anyhow::Context<smallvec::SmallVec<[base::wait_context::TriggeredEvent<devices::cmos::run_cmos_worker::Token>; 16]>, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<smallvec::SmallVec<[base::wait_context::TriggeredEvent<devices::virtio::console::sys::linux::read_input::Token>; 16]>, base::errno::Error> as anyhow::Context<smallvec::SmallVec<[base::wait_context::TriggeredEvent<devices::virtio::console::sys::linux::read_input::Token>; 16]>, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<core::option::Option<vmm_vhost::connection::Connection>, vmm_vhost::Error> as anyhow::Context<core::option::Option<vmm_vhost::connection::Connection>, vmm_vhost::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<core::option::Option<std::fs::File>, vmm_vhost::Error> as anyhow::Context<core::option::Option<std::fs::File>, vmm_vhost::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<core::option::Option<devices::virtio::queue::Queue>, std::sync::mpsc::RecvError> as anyhow::Context<core::option::Option<devices::virtio::queue::Queue>, std::sync::mpsc::RecvError>>::context::<&str>
Unexecuted instantiation: <core::result::Result<core::option::Option<base::sys::unix::tube::Tube>, anyhow::Error> as anyhow::Context<core::option::Option<base::sys::unix::tube::Tube>, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<base::wait_context::WaitContext<devices::virtio::console::worker::Token>, base::errno::Error> as anyhow::Context<base::wait_context::WaitContext<devices::virtio::console::worker::Token>, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<base::wait_context::WaitContext<<devices::vmwdt::Vmwdt>::vmwdt_worker_thread::Token>, base::errno::Error> as anyhow::Context<base::wait_context::WaitContext<<devices::vmwdt::Vmwdt>::vmwdt_worker_thread::Token>, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<base::wait_context::WaitContext<<devices::virtio::rng::Worker>::run::Token>, base::errno::Error> as anyhow::Context<base::wait_context::WaitContext<<devices::virtio::rng::Worker>::run::Token>, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<base::wait_context::WaitContext<<devices::virtio::vhost_user_frontend::worker::Worker>::run::Token>, base::errno::Error> as anyhow::Context<base::wait_context::WaitContext<<devices::virtio::vhost_user_frontend::worker::Worker>::run::Token>, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<base::wait_context::WaitContext<<devices::virtio::wl::Worker>::run::Token>, base::errno::Error> as anyhow::Context<base::wait_context::WaitContext<<devices::virtio::wl::Worker>::run::Token>, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<base::wait_context::WaitContext<devices::virtcpufreq_v2::vcpufreq_worker_thread::Token>, base::errno::Error> as anyhow::Context<base::wait_context::WaitContext<devices::virtcpufreq_v2::vcpufreq_worker_thread::Token>, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<base::wait_context::WaitContext<devices::cmos::run_cmos_worker::Token>, base::errno::Error> as anyhow::Context<base::wait_context::WaitContext<devices::cmos::run_cmos_worker::Token>, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<base::wait_context::WaitContext<devices::virtio::console::sys::linux::read_input::Token>, base::errno::Error> as anyhow::Context<base::wait_context::WaitContext<devices::virtio::console::sys::linux::read_input::Token>, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<cros_async::io_ext::AsyncWrapper<base::descriptor::SafeDescriptor>, base::errno::Error> as anyhow::Context<cros_async::io_ext::AsyncWrapper<base::descriptor::SafeDescriptor>, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<cros_async::io_ext::AsyncWrapper<base::descriptor::SafeDescriptor>, std::io::error::Error> as anyhow::Context<cros_async::io_ext::AsyncWrapper<base::descriptor::SafeDescriptor>, std::io::error::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<cros_async::io_source::IoSource<cros_async::io_ext::AsyncWrapper<base::descriptor::SafeDescriptor>>, cros_async::io_ext::AsyncError> as anyhow::Context<cros_async::io_source::IoSource<cros_async::io_ext::AsyncWrapper<base::descriptor::SafeDescriptor>>, cros_async::io_ext::AsyncError>>::context::<&str>
Unexecuted instantiation: <core::result::Result<cros_async::io_source::IoSource<cros_async::io_ext::AsyncWrapper<vmm_vhost::sys::unix::SocketListener>>, cros_async::io_ext::AsyncError> as anyhow::Context<cros_async::io_source::IoSource<cros_async::io_ext::AsyncWrapper<vmm_vhost::sys::unix::SocketListener>>, cros_async::io_ext::AsyncError>>::context::<&str>
Unexecuted instantiation: <core::result::Result<alloc::vec::Vec<devices::virtio::iommu::memory_mapper::MemRegion>, anyhow::Error> as anyhow::Context<alloc::vec::Vec<devices::virtio::iommu::memory_mapper::MemRegion>, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<alloc::boxed::Box<dyn disk::DiskFile>, disk::Error> as anyhow::Context<alloc::boxed::Box<dyn disk::DiskFile>, disk::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<alloc::boxed::Box<dyn disk::DiskFile>, std::io::error::Error> as anyhow::Context<alloc::boxed::Box<dyn disk::DiskFile>, std::io::error::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<alloc::boxed::Box<dyn disk::AsyncDisk>, disk::Error> as anyhow::Context<alloc::boxed::Box<dyn disk::AsyncDisk>, disk::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::virtio::vhost::worker::Worker<vhost::vsock::Vsock>, anyhow::Error> as anyhow::Context<devices::virtio::vhost::worker::Worker<vhost::vsock::Vsock>, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<vm_control::VmMemoryRegionId, vm_control::api::ApiClientError> as anyhow::Context<vm_control::VmMemoryRegionId, vm_control::api::ApiClientError>>::context::<&str>
Unexecuted instantiation: <core::result::Result<core::time::Duration, std::time::SystemTimeError> as anyhow::Context<core::time::Duration, std::time::SystemTimeError>>::context::<&str>
Unexecuted instantiation: <core::result::Result<base::descriptor::SafeDescriptor, std::io::error::Error> as anyhow::Context<base::descriptor::SafeDescriptor, std::io::error::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<base::shm::SharedMemory, base::errno::Error> as anyhow::Context<base::shm::SharedMemory, base::errno::Error>>::context::<devices::pci::coiommu::Error>
Unexecuted instantiation: <core::result::Result<base::mmap::MemoryMapping, base::mmap::Error> as anyhow::Context<base::mmap::MemoryMapping, base::mmap::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<base::event::Event, base::errno::Error> as anyhow::Context<base::event::Event, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<base::timer::Timer, base::errno::Error> as anyhow::Context<base::timer::Timer, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, ciborium::de::error::Error<std::io::error::Error>> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, ciborium::de::error::Error<std::io::error::Error>>>::context::<&str>
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, anyhow::Error> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::bat::GoldfishBatterySnapshot, anyhow::Error> as anyhow::Context<devices::bat::GoldfishBatterySnapshot, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::mock::MockDevice, anyhow::Error> as anyhow::Context<devices::mock::MockDevice, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::vmwdt::VmwdtRestore, anyhow::Error> as anyhow::Context<devices::vmwdt::VmwdtRestore, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::serial::SerialSnapshot, anyhow::Error> as anyhow::Context<devices::serial::SerialSnapshot, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::irq_event::IrqEdgeEvent, base::errno::Error> as anyhow::Context<devices::irq_event::IrqEdgeEvent, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::irq_event::IrqLevelEvent, base::errno::Error> as anyhow::Context<devices::irq_event::IrqLevelEvent, base::errno::Error>>::context::<&str>
<core::result::Result<cros_async::event::EventAsync, cros_async::io_ext::AsyncError> as anyhow::Context<cros_async::event::EventAsync, cros_async::io_ext::AsyncError>>::context::<&str>
Line
Count
Source
46
1.01k
    fn context<C>(self, context: C) -> Result<T, Error>
47
1.01k
    where
48
1.01k
        C: Display + Send + Sync + 'static,
49
    {
50
1.01k
        self.map_err(|error| error.ext_context(context))
51
1.01k
    }
Unexecuted instantiation: <core::result::Result<cros_async::executor::Executor, cros_async::io_ext::AsyncError> as anyhow::Context<cros_async::executor::Executor, cros_async::io_ext::AsyncError>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::pci::pci_configuration::PciConfigurationSerialized, anyhow::Error> as anyhow::Context<devices::pci::pci_configuration::PciConfigurationSerialized, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::pci::coiommu::PinPageInfo, vm_memory::guest_memory::Error> as anyhow::Context<devices::pci::coiommu::PinPageInfo, vm_memory::guest_memory::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::pci::pci_root::PciRootSerializable, anyhow::Error> as anyhow::Context<devices::pci::pci_root::PciRootSerializable, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::tsc::grouping::CoreGrouping, anyhow::Error> as anyhow::Context<devices::tsc::grouping::CoreGrouping, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::virtio::pmem::PmemSnapshot, anyhow::Error> as anyhow::Context<devices::virtio::pmem::PmemSnapshot, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::virtio::queue::QueueConfigSnapshot, anyhow::Error> as anyhow::Context<devices::virtio::queue::QueueConfigSnapshot, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::virtio::queue::Queue, anyhow::Error> as anyhow::Context<devices::virtio::queue::Queue, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::irqchip::ioapic::IoapicSnapshot, anyhow::Error> as anyhow::Context<devices::irqchip::ioapic::IoapicSnapshot, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::irqchip::x86_64::IrqChipSnapshot, anyhow::Error> as anyhow::Context<devices::irqchip::x86_64::IrqChipSnapshot, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::pci::pcie::pcie_port::PciePort, devices::pci::pci_device::Error> as anyhow::Context<devices::pci::pcie::pcie_port::PciePort, devices::pci::pci_device::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::virtio::device_constants::console::virtio_console_control, std::io::error::Error> as anyhow::Context<devices::virtio::device_constants::console::virtio_console_control, std::io::error::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::virtio::vhost_user_backend::block::BlockBackendSnapshot, anyhow::Error> as anyhow::Context<devices::virtio::vhost_user_backend::block::BlockBackendSnapshot, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::virtio::scsi::device::Targets, std::io::error::Error> as anyhow::Context<devices::virtio::scsi::device::Targets, std::io::error::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::virtio::iommu::ipc_memory_mapper::IommuResponse, base::tube::Error> as anyhow::Context<devices::virtio::iommu::ipc_memory_mapper::IommuResponse, base::tube::Error>>::context::<&str>
<core::result::Result<devices::virtio::queue::split_queue::SplitQueue, anyhow::Error> as anyhow::Context<devices::virtio::queue::split_queue::SplitQueue, anyhow::Error>>::context::<&str>
Line
Count
Source
46
1.99k
    fn context<C>(self, context: C) -> Result<T, Error>
47
1.99k
    where
48
1.99k
        C: Display + Send + Sync + 'static,
49
    {
50
1.99k
        self.map_err(|error| error.ext_context(context))
51
1.99k
    }
Unexecuted instantiation: <core::result::Result<devices::virtio::queue::packed_queue::PackedQueue, anyhow::Error> as anyhow::Context<devices::virtio::queue::packed_queue::PackedQueue, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::virtio::vhost::vsock::VsockSnapshot, anyhow::Error> as anyhow::Context<devices::virtio::vhost::vsock::VsockSnapshot, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::virtio::console::device::ConsoleSnapshot, anyhow::Error> as anyhow::Context<devices::virtio::console::device::ConsoleSnapshot, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::irqchip::kvm::x86_64::KvmSplitIrqChipSnapshot, anyhow::Error> as anyhow::Context<devices::irqchip::kvm::x86_64::KvmSplitIrqChipSnapshot, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<devices::irqchip::kvm::x86_64::KvmKernelIrqChipSnapshot, anyhow::Error> as anyhow::Context<devices::irqchip::kvm::x86_64::KvmKernelIrqChipSnapshot, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<libc::unix::linux_like::linux::rlimit64, base::errno::Error> as anyhow::Context<libc::unix::linux_like::linux::rlimit64, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<<devices::cmos::Cmos as devices::suspendable::Suspendable>::restore::CmosIndex, anyhow::Error> as anyhow::Context<<devices::cmos::Cmos as devices::suspendable::Suspendable>::restore::CmosIndex, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<*const u8, vm_memory::guest_memory::Error> as anyhow::Context<*const u8, vm_memory::guest_memory::Error>>::context::<devices::pci::coiommu::Error>
Unexecuted instantiation: <core::result::Result<*const u8, vm_memory::guest_memory::Error> as anyhow::Context<*const u8, vm_memory::guest_memory::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<(core::option::Option<i32>, std::process::ExitStatus), base::errno::Error> as anyhow::Context<(core::option::Option<i32>, std::process::ExitStatus), base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<(std::fs::File, std::fs::File), base::errno::Error> as anyhow::Context<(std::fs::File, std::fs::File), base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<bool, base::errno::Error> as anyhow::Context<bool, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<usize, base::errno::Error> as anyhow::Context<usize, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<usize, std::io::error::Error> as anyhow::Context<usize, std::io::error::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<u32, base::tube::Error> as anyhow::Context<u32, base::tube::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<u16, vhost::Error> as anyhow::Context<u16, vhost::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<u16, devices::virtio::vhost_user_frontend::error::Error> as anyhow::Context<u16, devices::virtio::vhost_user_frontend::error::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<(), std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>> as anyhow::Context<(), std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>>>::context::<&str>
Unexecuted instantiation: <core::result::Result<(), ciborium::ser::error::Error<std::io::error::Error>> as anyhow::Context<(), ciborium::ser::error::Error<std::io::error::Error>>>::context::<&str>
<core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::context::<&str>
Line
Count
Source
46
1.13M
    fn context<C>(self, context: C) -> Result<T, Error>
47
1.13M
    where
48
1.13M
        C: Display + Send + Sync + 'static,
49
    {
50
1.13M
        self.map_err(|error| error.ext_context(context))
51
1.13M
    }
Unexecuted instantiation: <core::result::Result<(), vhost::Error> as anyhow::Context<(), vhost::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<(), vmm_vhost::Error> as anyhow::Context<(), vmm_vhost::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<(), devices::vfio::VfioError> as anyhow::Context<(), devices::vfio::VfioError>>::context::<&str>
Unexecuted instantiation: <core::result::Result<(), cros_async::io_ext::AsyncError> as anyhow::Context<(), cros_async::io_ext::AsyncError>>::context::<&str>
Unexecuted instantiation: <core::result::Result<(), vm_control::api::ApiClientError> as anyhow::Context<(), vm_control::api::ApiClientError>>::context::<&str>
Unexecuted instantiation: <core::result::Result<(), devices::virtio::iommu::IommuError> as anyhow::Context<(), devices::virtio::iommu::IommuError>>::context::<&str>
Unexecuted instantiation: <core::result::Result<(), devices::irqchip::ioapic::IoapicError> as anyhow::Context<(), devices::irqchip::ioapic::IoapicError>>::context::<&str>
Unexecuted instantiation: <core::result::Result<(), devices::virtio::block::asynchronous::ControlError> as anyhow::Context<(), devices::virtio::block::asynchronous::ControlError>>::context::<&str>
Unexecuted instantiation: <core::result::Result<(), devices::virtio::block::asynchronous::ExecuteError> as anyhow::Context<(), devices::virtio::block::asynchronous::ExecuteError>>::context::<&str>
Unexecuted instantiation: <core::result::Result<i64, base::errno::Error> as anyhow::Context<i64, base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<u64, resources::Error> as anyhow::Context<u64, resources::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<u64, devices::vfio::VfioError> as anyhow::Context<u64, devices::vfio::VfioError>>::context::<&str>
Unexecuted instantiation: <core::result::Result<u64, vm_memory::guest_memory::Error> as anyhow::Context<u64, vm_memory::guest_memory::Error>>::context::<devices::pci::coiommu::Error>
Unexecuted instantiation: <core::result::Result<u64, vm_memory::guest_memory::Error> as anyhow::Context<u64, vm_memory::guest_memory::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<u64, std::io::error::Error> as anyhow::Context<u64, std::io::error::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<minijail::Minijail, minijail::Error> as anyhow::Context<minijail::Minijail, minijail::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<(), minijail::Error> as anyhow::Context<(), minijail::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<vm_control::VmResponse, base::tube::Error> as anyhow::Context<vm_control::VmResponse, base::tube::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<(), base::tube::Error> as anyhow::Context<(), base::tube::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<(), base::errno::Error> as anyhow::Context<(), base::errno::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<alloc::boxed::Box<crypto_generic::always_panic_impl::CryptWriter<std::fs::File>>, anyhow::Error> as anyhow::Context<alloc::boxed::Box<crypto_generic::always_panic_impl::CryptWriter<std::fs::File>>, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<crypto_generic::CryptKey, anyhow::Error> as anyhow::Context<crypto_generic::CryptKey, anyhow::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<std::fs::File, std::io::error::Error> as anyhow::Context<std::fs::File, std::io::error::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<(), std::io::error::Error> as anyhow::Context<(), std::io::error::Error>>::context::<&str>
Unexecuted instantiation: <core::result::Result<_, _> as anyhow::Context<_, _>>::context::<_>
52
53
2.45M
    fn with_context<C, F>(self, context: F) -> Result<T, Error>
54
2.45M
    where
55
2.45M
        C: Display + Send + Sync + 'static,
56
2.45M
        F: FnOnce() -> C,
57
    {
58
2.45M
        self.map_err(|error| error.ext_context(context()))
Unexecuted instantiation: <core::result::Result<core::option::Option<devices::virtio::queue::Queue>, anyhow::Error> as anyhow::Context<core::option::Option<devices::virtio::queue::Queue>, anyhow::Error>>::with_context::<alloc::string::String, <devices::virtio::console::Console as devices::virtio::virtio_device::VirtioDevice>::virtio_sleep::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<alloc::vec::Vec<u8>, std::io::error::Error> as anyhow::Context<alloc::vec::Vec<u8>, std::io::error::Error>>::with_context::<alloc::string::String, <devices::pci::pcie::pcie_host::HotplugWorker>::run::{closure#2}>::{closure#0}
Unexecuted instantiation: <core::result::Result<alloc::vec::Vec<u8>, std::io::error::Error> as anyhow::Context<alloc::vec::Vec<u8>, std::io::error::Error>>::with_context::<alloc::string::String, <devices::pci::pcie::pcie_host::HotplugWorker>::run::{closure#1}>::{closure#0}
Unexecuted instantiation: <core::result::Result<alloc::vec::Vec<u8>, std::io::error::Error> as anyhow::Context<alloc::vec::Vec<u8>, std::io::error::Error>>::with_context::<alloc::string::String, devices::pci::pcie::pcie_host::visit_children::{closure#2}>::{closure#0}
Unexecuted instantiation: <core::result::Result<vm_control::VmResponse, base::tube::Error> as anyhow::Context<vm_control::VmResponse, base::tube::Error>>::with_context::<alloc::string::String, <devices::pci::pcie::pcie_host::HotplugWorker>::run::{closure#5}>::{closure#0}
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, anyhow::Error> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, anyhow::Error>>::with_context::<alloc::string::String, <devices::bus::Bus>::snapshot_devices::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, anyhow::Error> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, anyhow::Error>>::with_context::<alloc::string::String, <devices::bus::Bus>::snapshot_devices::{closure#1}>::{closure#0}
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, anyhow::Error> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, anyhow::Error>>::with_context::<alloc::string::String, <devices::pl030::Pl030 as devices::suspendable::Suspendable>::snapshot::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, anyhow::Error> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, anyhow::Error>>::with_context::<alloc::string::String, <devices::pci::pci_root::PciConfigIo as devices::suspendable::Suspendable>::snapshot::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, anyhow::Error> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, anyhow::Error>>::with_context::<alloc::string::String, <devices::pci::pci_root::PciConfigMmio as devices::suspendable::Suspendable>::snapshot::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, anyhow::Error> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, anyhow::Error>>::with_context::<alloc::string::String, <devices::acpi::ACPIPMResource as devices::suspendable::Suspendable>::snapshot::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, anyhow::Error> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, anyhow::Error>>::with_context::<alloc::string::String, <devices::pci::pci_root::PciRootConfiguration as devices::suspendable::Suspendable>::snapshot::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, anyhow::Error> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, anyhow::Error>>::with_context::<alloc::string::String, <devices::pci::pci_root::PciVirtualConfigMmio as devices::suspendable::Suspendable>::snapshot::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::acpi::ACPIPMResrourceSerializable, anyhow::Error> as anyhow::Context<devices::acpi::ACPIPMResrourceSerializable, anyhow::Error>>::with_context::<alloc::string::String, <devices::acpi::ACPIPMResource as devices::suspendable::Suspendable>::restore::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::pl030::Pl030Snapshot, anyhow::Error> as anyhow::Context<devices::pl030::Pl030Snapshot, anyhow::Error>>::with_context::<alloc::string::String, <devices::pl030::Pl030 as devices::suspendable::Suspendable>::restore::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::irq_event::IrqEdgeEvent, base::errno::Error> as anyhow::Context<devices::irq_event::IrqEdgeEvent, base::errno::Error>>::with_context::<alloc::string::String, <devices::virtio::virtio_mmio_device::VirtioMmioDevice>::activate::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::irq_event::IrqLevelEvent, base::errno::Error> as anyhow::Context<devices::irq_event::IrqLevelEvent, base::errno::Error>>::with_context::<alloc::string::String, <devices::virtio::virtio_pci_device::VirtioPciDevice>::activate::{closure#1}>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::irq_event::IrqLevelEvent, base::errno::Error> as anyhow::Context<devices::irq_event::IrqLevelEvent, base::errno::Error>>::with_context::<alloc::string::String, <devices::virtio::virtio_pci_device::VirtioPciDevice as devices::suspendable::Suspendable>::restore::{closure#1}>::{closure#0}
Unexecuted instantiation: <core::result::Result<alloc::string::String, std::io::error::Error> as anyhow::Context<alloc::string::String, std::io::error::Error>>::with_context::<alloc::string::String, <devices::ac_adapter::AcAdapter>::get_init_state::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<std::fs::File, base::errno::Error> as anyhow::Context<std::fs::File, base::errno::Error>>::with_context::<alloc::string::String, <devices::virtio::vhost::vsock::Vsock>::new::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<std::fs::File, std::io::error::Error> as anyhow::Context<std::fs::File, std::io::error::Error>>::with_context::<alloc::string::String, <devices::virtio::vhost_user_backend::vsock::VhostUserVsockDevice>::new<alloc::string::String>::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<std::fs::File, std::io::error::Error> as anyhow::Context<std::fs::File, std::io::error::Error>>::with_context::<alloc::string::String, <devices::pci::pcie::pcie_host::PciHostConfig>::new::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<std::fs::ReadDir, std::io::error::Error> as anyhow::Context<std::fs::ReadDir, std::io::error::Error>>::with_context::<alloc::string::String, devices::pci::pcie::pcie_host::visit_children::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::pci::pci_root::PciConfigIoSerializable, anyhow::Error> as anyhow::Context<devices::pci::pci_root::PciConfigIoSerializable, anyhow::Error>>::with_context::<alloc::string::String, <devices::pci::pci_root::PciConfigIo as devices::suspendable::Suspendable>::restore::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::pci::pci_root::PciConfigMmioSerializable, anyhow::Error> as anyhow::Context<devices::pci::pci_root::PciConfigMmioSerializable, anyhow::Error>>::with_context::<alloc::string::String, <devices::pci::pci_root::PciConfigMmio as devices::suspendable::Suspendable>::restore::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::pci::pci_root::PciVirtualConfigMmioSerializable, anyhow::Error> as anyhow::Context<devices::pci::pci_root::PciVirtualConfigMmioSerializable, anyhow::Error>>::with_context::<alloc::string::String, <devices::pci::pci_root::PciVirtualConfigMmio as devices::suspendable::Suspendable>::restore::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::virtio::queue::Queue, anyhow::Error> as anyhow::Context<devices::virtio::queue::Queue, anyhow::Error>>::with_context::<alloc::string::String, <devices::virtio::vhost_user_backend::console::ConsoleBackend as devices::virtio::vhost_user_backend::handler::VhostUserDevice>::stop_queue::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::virtio::queue::split_descriptor_chain::Desc, vm_memory::guest_memory::Error> as anyhow::Context<devices::virtio::queue::split_descriptor_chain::Desc, vm_memory::guest_memory::Error>>::with_context::<alloc::string::String, <devices::virtio::queue::split_descriptor_chain::SplitDescriptorChain as devices::virtio::descriptor_chain::DescriptorChainIter>::next::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<devices::virtio::queue::packed_descriptor_chain::PackedDesc, vm_memory::guest_memory::Error> as anyhow::Context<devices::virtio::queue::packed_descriptor_chain::PackedDesc, vm_memory::guest_memory::Error>>::with_context::<alloc::string::String, <devices::virtio::queue::packed_descriptor_chain::PackedDescriptorChain as devices::virtio::descriptor_chain::DescriptorChainIter>::next::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::virtio::vhost_user_frontend::VhostUserFrontend>::start_worker::{closure#0}::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, devices::wake_buses::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, devices::sleep_buses::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::power::hvc::HvcDevicePowerManager>::handle::{closure#1}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::bus::Bus>::wake_devices::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::bus::Bus>::wake_devices::{closure#1}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::bus::Bus>::sleep_devices::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::bus::Bus>::sleep_devices::{closure#1}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::bus::Bus>::restore_devices::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::bus::Bus>::restore_devices::{closure#1}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::virtio::virtio_pci_device::VirtioPciDevice as devices::suspendable::Suspendable>::wake::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::virtio::virtio_pci_device::VirtioPciDevice as devices::suspendable::Suspendable>::wake::{closure#1}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), base::tube::Error> as anyhow::Context<(), base::tube::Error>>::with_context::<alloc::string::String, <devices::pci::pcie::pcie_host::HotplugWorker>::run::{closure#4}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), std::io::error::Error> as anyhow::Context<(), std::io::error::Error>>::with_context::<alloc::string::String, <devices::pci::pcie::pcie_host::HotplugWorker>::run::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), std::io::error::Error> as anyhow::Context<(), std::io::error::Error>>::with_context::<alloc::string::String, <devices::pci::pcie::pcie_host::HotplugWorker>::run::{closure#3}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), minijail::Error> as anyhow::Context<(), minijail::Error>>::with_context::<alloc::string::String, jail::helpers::create_sandbox_minijail::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), minijail::Error> as anyhow::Context<(), minijail::Error>>::with_context::<alloc::string::String, jail::helpers::create_sandbox_minijail::{closure#1}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), minijail::Error> as anyhow::Context<(), minijail::Error>>::with_context::<alloc::string::String, jail::helpers::set_embedded_bpf_program::{closure#1}>::{closure#0}
Unexecuted instantiation: <core::result::Result<alloc::boxed::Box<dyn mesa3d_util::defines::MappedRegion>, rutabaga_gfx::rutabaga_utils::RutabagaError> as anyhow::Context<alloc::boxed::Box<dyn mesa3d_util::defines::MappedRegion>, rutabaga_gfx::rutabaga_utils::RutabagaError>>::with_context::<alloc::string::String, <vm_control::VmMemorySource>::map::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<std::fs::File, std::io::error::Error> as anyhow::Context<std::fs::File, std::io::error::Error>>::with_context::<alloc::string::String, <snapshot::SnapshotReader>::raw_fragment::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<std::fs::File, std::io::error::Error> as anyhow::Context<std::fs::File, std::io::error::Error>>::with_context::<alloc::string::String, <snapshot::SnapshotWriter>::raw_fragment_with_chunk_size::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), std::io::error::Error> as anyhow::Context<(), std::io::error::Error>>::with_context::<alloc::string::String, <snapshot::SnapshotWriter>::add_namespace::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<(), std::io::error::Error> as anyhow::Context<(), std::io::error::Error>>::with_context::<alloc::string::String, <snapshot::SnapshotWriter>::new::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::result::Result<_, _> as anyhow::Context<_, _>>::with_context::<_, _>::{closure#0}
59
2.45M
    }
Unexecuted instantiation: <core::result::Result<core::option::Option<devices::virtio::queue::Queue>, anyhow::Error> as anyhow::Context<core::option::Option<devices::virtio::queue::Queue>, anyhow::Error>>::with_context::<alloc::string::String, <devices::virtio::console::Console as devices::virtio::virtio_device::VirtioDevice>::virtio_sleep::{closure#0}>
Unexecuted instantiation: <core::result::Result<alloc::vec::Vec<u8>, std::io::error::Error> as anyhow::Context<alloc::vec::Vec<u8>, std::io::error::Error>>::with_context::<alloc::string::String, <devices::pci::pcie::pcie_host::HotplugWorker>::run::{closure#2}>
Unexecuted instantiation: <core::result::Result<alloc::vec::Vec<u8>, std::io::error::Error> as anyhow::Context<alloc::vec::Vec<u8>, std::io::error::Error>>::with_context::<alloc::string::String, <devices::pci::pcie::pcie_host::HotplugWorker>::run::{closure#1}>
Unexecuted instantiation: <core::result::Result<alloc::vec::Vec<u8>, std::io::error::Error> as anyhow::Context<alloc::vec::Vec<u8>, std::io::error::Error>>::with_context::<alloc::string::String, devices::pci::pcie::pcie_host::visit_children::{closure#2}>
Unexecuted instantiation: <core::result::Result<vm_control::VmResponse, base::tube::Error> as anyhow::Context<vm_control::VmResponse, base::tube::Error>>::with_context::<alloc::string::String, <devices::pci::pcie::pcie_host::HotplugWorker>::run::{closure#5}>
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, anyhow::Error> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, anyhow::Error>>::with_context::<alloc::string::String, <devices::bus::Bus>::snapshot_devices::{closure#0}>
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, anyhow::Error> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, anyhow::Error>>::with_context::<alloc::string::String, <devices::bus::Bus>::snapshot_devices::{closure#1}>
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, anyhow::Error> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, anyhow::Error>>::with_context::<alloc::string::String, <devices::pl030::Pl030 as devices::suspendable::Suspendable>::snapshot::{closure#0}>
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, anyhow::Error> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, anyhow::Error>>::with_context::<alloc::string::String, <devices::pci::pci_root::PciConfigIo as devices::suspendable::Suspendable>::snapshot::{closure#0}>
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, anyhow::Error> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, anyhow::Error>>::with_context::<alloc::string::String, <devices::pci::pci_root::PciConfigMmio as devices::suspendable::Suspendable>::snapshot::{closure#0}>
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, anyhow::Error> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, anyhow::Error>>::with_context::<alloc::string::String, <devices::acpi::ACPIPMResource as devices::suspendable::Suspendable>::snapshot::{closure#0}>
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, anyhow::Error> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, anyhow::Error>>::with_context::<alloc::string::String, <devices::pci::pci_root::PciRootConfiguration as devices::suspendable::Suspendable>::snapshot::{closure#0}>
Unexecuted instantiation: <core::result::Result<snapshot::any_snapshot::AnySnapshot, anyhow::Error> as anyhow::Context<snapshot::any_snapshot::AnySnapshot, anyhow::Error>>::with_context::<alloc::string::String, <devices::pci::pci_root::PciVirtualConfigMmio as devices::suspendable::Suspendable>::snapshot::{closure#0}>
Unexecuted instantiation: <core::result::Result<devices::acpi::ACPIPMResrourceSerializable, anyhow::Error> as anyhow::Context<devices::acpi::ACPIPMResrourceSerializable, anyhow::Error>>::with_context::<alloc::string::String, <devices::acpi::ACPIPMResource as devices::suspendable::Suspendable>::restore::{closure#0}>
Unexecuted instantiation: <core::result::Result<devices::pl030::Pl030Snapshot, anyhow::Error> as anyhow::Context<devices::pl030::Pl030Snapshot, anyhow::Error>>::with_context::<alloc::string::String, <devices::pl030::Pl030 as devices::suspendable::Suspendable>::restore::{closure#0}>
Unexecuted instantiation: <core::result::Result<devices::irq_event::IrqEdgeEvent, base::errno::Error> as anyhow::Context<devices::irq_event::IrqEdgeEvent, base::errno::Error>>::with_context::<alloc::string::String, <devices::virtio::virtio_mmio_device::VirtioMmioDevice>::activate::{closure#0}>
Unexecuted instantiation: <core::result::Result<devices::irq_event::IrqLevelEvent, base::errno::Error> as anyhow::Context<devices::irq_event::IrqLevelEvent, base::errno::Error>>::with_context::<alloc::string::String, <devices::virtio::virtio_pci_device::VirtioPciDevice>::activate::{closure#1}>
Unexecuted instantiation: <core::result::Result<devices::irq_event::IrqLevelEvent, base::errno::Error> as anyhow::Context<devices::irq_event::IrqLevelEvent, base::errno::Error>>::with_context::<alloc::string::String, <devices::virtio::virtio_pci_device::VirtioPciDevice as devices::suspendable::Suspendable>::restore::{closure#1}>
Unexecuted instantiation: <core::result::Result<alloc::string::String, std::io::error::Error> as anyhow::Context<alloc::string::String, std::io::error::Error>>::with_context::<alloc::string::String, <devices::ac_adapter::AcAdapter>::get_init_state::{closure#0}>
Unexecuted instantiation: <core::result::Result<std::fs::File, base::errno::Error> as anyhow::Context<std::fs::File, base::errno::Error>>::with_context::<alloc::string::String, <devices::virtio::vhost::vsock::Vsock>::new::{closure#0}>
Unexecuted instantiation: <core::result::Result<std::fs::File, std::io::error::Error> as anyhow::Context<std::fs::File, std::io::error::Error>>::with_context::<alloc::string::String, <devices::virtio::vhost_user_backend::vsock::VhostUserVsockDevice>::new<alloc::string::String>::{closure#0}>
Unexecuted instantiation: <core::result::Result<std::fs::File, std::io::error::Error> as anyhow::Context<std::fs::File, std::io::error::Error>>::with_context::<alloc::string::String, <devices::pci::pcie::pcie_host::PciHostConfig>::new::{closure#0}>
Unexecuted instantiation: <core::result::Result<std::fs::ReadDir, std::io::error::Error> as anyhow::Context<std::fs::ReadDir, std::io::error::Error>>::with_context::<alloc::string::String, devices::pci::pcie::pcie_host::visit_children::{closure#0}>
Unexecuted instantiation: <core::result::Result<devices::pci::pci_root::PciConfigIoSerializable, anyhow::Error> as anyhow::Context<devices::pci::pci_root::PciConfigIoSerializable, anyhow::Error>>::with_context::<alloc::string::String, <devices::pci::pci_root::PciConfigIo as devices::suspendable::Suspendable>::restore::{closure#0}>
Unexecuted instantiation: <core::result::Result<devices::pci::pci_root::PciConfigMmioSerializable, anyhow::Error> as anyhow::Context<devices::pci::pci_root::PciConfigMmioSerializable, anyhow::Error>>::with_context::<alloc::string::String, <devices::pci::pci_root::PciConfigMmio as devices::suspendable::Suspendable>::restore::{closure#0}>
Unexecuted instantiation: <core::result::Result<devices::pci::pci_root::PciVirtualConfigMmioSerializable, anyhow::Error> as anyhow::Context<devices::pci::pci_root::PciVirtualConfigMmioSerializable, anyhow::Error>>::with_context::<alloc::string::String, <devices::pci::pci_root::PciVirtualConfigMmio as devices::suspendable::Suspendable>::restore::{closure#0}>
Unexecuted instantiation: <core::result::Result<devices::virtio::queue::Queue, anyhow::Error> as anyhow::Context<devices::virtio::queue::Queue, anyhow::Error>>::with_context::<alloc::string::String, <devices::virtio::vhost_user_backend::console::ConsoleBackend as devices::virtio::vhost_user_backend::handler::VhostUserDevice>::stop_queue::{closure#0}>
<core::result::Result<devices::virtio::queue::split_descriptor_chain::Desc, vm_memory::guest_memory::Error> as anyhow::Context<devices::virtio::queue::split_descriptor_chain::Desc, vm_memory::guest_memory::Error>>::with_context::<alloc::string::String, <devices::virtio::queue::split_descriptor_chain::SplitDescriptorChain as devices::virtio::descriptor_chain::DescriptorChainIter>::next::{closure#0}>
Line
Count
Source
53
2.45M
    fn with_context<C, F>(self, context: F) -> Result<T, Error>
54
2.45M
    where
55
2.45M
        C: Display + Send + Sync + 'static,
56
2.45M
        F: FnOnce() -> C,
57
    {
58
2.45M
        self.map_err(|error| error.ext_context(context()))
59
2.45M
    }
Unexecuted instantiation: <core::result::Result<devices::virtio::queue::packed_descriptor_chain::PackedDesc, vm_memory::guest_memory::Error> as anyhow::Context<devices::virtio::queue::packed_descriptor_chain::PackedDesc, vm_memory::guest_memory::Error>>::with_context::<alloc::string::String, <devices::virtio::queue::packed_descriptor_chain::PackedDescriptorChain as devices::virtio::descriptor_chain::DescriptorChainIter>::next::{closure#0}>
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::virtio::vhost_user_frontend::VhostUserFrontend>::start_worker::{closure#0}::{closure#0}>
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, devices::wake_buses::{closure#0}>
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, devices::sleep_buses::{closure#0}>
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::power::hvc::HvcDevicePowerManager>::handle::{closure#1}>
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::bus::Bus>::wake_devices::{closure#0}>
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::bus::Bus>::wake_devices::{closure#1}>
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::bus::Bus>::sleep_devices::{closure#0}>
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::bus::Bus>::sleep_devices::{closure#1}>
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::bus::Bus>::restore_devices::{closure#0}>
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::bus::Bus>::restore_devices::{closure#1}>
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::virtio::virtio_pci_device::VirtioPciDevice as devices::suspendable::Suspendable>::wake::{closure#0}>
Unexecuted instantiation: <core::result::Result<(), anyhow::Error> as anyhow::Context<(), anyhow::Error>>::with_context::<alloc::string::String, <devices::virtio::virtio_pci_device::VirtioPciDevice as devices::suspendable::Suspendable>::wake::{closure#1}>
Unexecuted instantiation: <core::result::Result<(), base::tube::Error> as anyhow::Context<(), base::tube::Error>>::with_context::<alloc::string::String, <devices::pci::pcie::pcie_host::HotplugWorker>::run::{closure#4}>
Unexecuted instantiation: <core::result::Result<(), std::io::error::Error> as anyhow::Context<(), std::io::error::Error>>::with_context::<alloc::string::String, <devices::pci::pcie::pcie_host::HotplugWorker>::run::{closure#0}>
Unexecuted instantiation: <core::result::Result<(), std::io::error::Error> as anyhow::Context<(), std::io::error::Error>>::with_context::<alloc::string::String, <devices::pci::pcie::pcie_host::HotplugWorker>::run::{closure#3}>
Unexecuted instantiation: <core::result::Result<(), minijail::Error> as anyhow::Context<(), minijail::Error>>::with_context::<alloc::string::String, jail::helpers::create_sandbox_minijail::{closure#0}>
Unexecuted instantiation: <core::result::Result<(), minijail::Error> as anyhow::Context<(), minijail::Error>>::with_context::<alloc::string::String, jail::helpers::create_sandbox_minijail::{closure#1}>
Unexecuted instantiation: <core::result::Result<(), minijail::Error> as anyhow::Context<(), minijail::Error>>::with_context::<alloc::string::String, jail::helpers::set_embedded_bpf_program::{closure#1}>
Unexecuted instantiation: <core::result::Result<alloc::boxed::Box<dyn mesa3d_util::defines::MappedRegion>, rutabaga_gfx::rutabaga_utils::RutabagaError> as anyhow::Context<alloc::boxed::Box<dyn mesa3d_util::defines::MappedRegion>, rutabaga_gfx::rutabaga_utils::RutabagaError>>::with_context::<alloc::string::String, <vm_control::VmMemorySource>::map::{closure#0}>
Unexecuted instantiation: <core::result::Result<std::fs::File, std::io::error::Error> as anyhow::Context<std::fs::File, std::io::error::Error>>::with_context::<alloc::string::String, <snapshot::SnapshotReader>::raw_fragment::{closure#0}>
Unexecuted instantiation: <core::result::Result<std::fs::File, std::io::error::Error> as anyhow::Context<std::fs::File, std::io::error::Error>>::with_context::<alloc::string::String, <snapshot::SnapshotWriter>::raw_fragment_with_chunk_size::{closure#0}>
Unexecuted instantiation: <core::result::Result<(), std::io::error::Error> as anyhow::Context<(), std::io::error::Error>>::with_context::<alloc::string::String, <snapshot::SnapshotWriter>::add_namespace::{closure#0}>
Unexecuted instantiation: <core::result::Result<(), std::io::error::Error> as anyhow::Context<(), std::io::error::Error>>::with_context::<alloc::string::String, <snapshot::SnapshotWriter>::new::{closure#0}>
Unexecuted instantiation: <core::result::Result<_, _> as anyhow::Context<_, _>>::with_context::<_, _>
60
}
61
62
/// ```
63
/// # type T = ();
64
/// #
65
/// use anyhow::{Context, Result};
66
///
67
/// fn maybe_get() -> Option<T> {
68
///     # const IGNORE: &str = stringify! {
69
///     ...
70
///     # };
71
///     # unimplemented!()
72
/// }
73
///
74
/// fn demo() -> Result<()> {
75
///     let t = maybe_get().context("there is no T")?;
76
///     # const IGNORE: &str = stringify! {
77
///     ...
78
///     # };
79
///     # unimplemented!()
80
/// }
81
/// ```
82
impl<T> Context<T, Infallible> for Option<T> {
83
4.82M
    fn context<C>(self, context: C) -> Result<T, Error>
84
4.82M
    where
85
4.82M
        C: Display + Send + Sync + 'static,
86
    {
87
4.82M
        self.ok_or_else(|| Error::from_display(context, backtrace!()))
Unexecuted instantiation: <core::option::Option<alloc::boxed::Box<dyn disk::DiskFile>> as anyhow::Context<alloc::boxed::Box<dyn disk::DiskFile>, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<alloc::boxed::Box<dyn devices::virtio::virtio_device::SharedMemoryMapper>> as anyhow::Context<alloc::boxed::Box<dyn devices::virtio::virtio_device::SharedMemoryMapper>, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<resources::Alloc> as anyhow::Context<resources::Alloc, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<vm_control::VmMemoryRegionId> as anyhow::Context<vm_control::VmMemoryRegionId, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<vhost::vsock::Vsock> as anyhow::Context<vhost::vsock::Vsock, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<resources::address_range::AddressRange> as anyhow::Context<resources::address_range::AddressRange, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<devices::bus::HotPlugKey> as anyhow::Context<devices::bus::HotPlugKey, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<p9::server::Server> as anyhow::Context<p9::server::Server, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<vm_memory::guest_address::GuestAddress> as anyhow::Context<vm_memory::guest_address::GuestAddress, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<devices::virtio::queue::Queue> as anyhow::Context<devices::virtio::queue::Queue, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<base::sys::unix::tube::Tube> as anyhow::Context<base::sys::unix::tube::Tube, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<devices::virtio::scsi::device::Targets> as anyhow::Context<devices::virtio::scsi::device::Targets, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<&mut devices::virtio::iommu::memory_mapper::ExportState> as anyhow::Context<&mut devices::virtio::iommu::memory_mapper::ExportState, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<&alloc::boxed::Box<dyn disk::DiskFile>> as anyhow::Context<&alloc::boxed::Box<dyn disk::DiskFile>, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<&devices::bus::HotPlugKey> as anyhow::Context<&devices::bus::HotPlugKey, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<&devices::virtio::interrupt::Interrupt> as anyhow::Context<&devices::virtio::interrupt::Interrupt, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<&devices::virtio::vhost_user_backend::handler::VhostBackendReqConnection> as anyhow::Context<&devices::virtio::vhost_user_backend::handler::VhostBackendReqConnection, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<&(base::worker_thread::WorkerThread<()>, futures_channel::mpsc::UnboundedSender<devices::virtio::block::asynchronous::WorkerCmd>)> as anyhow::Context<&(base::worker_thread::WorkerThread<()>, futures_channel::mpsc::UnboundedSender<devices::virtio::block::asynchronous::WorkerCmd>), core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<&(u32, u32)> as anyhow::Context<&(u32, u32), core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<u32> as anyhow::Context<u32, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<u64> as anyhow::Context<u64, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<anyhow::Error> as anyhow::Context<anyhow::Error, core::convert::Infallible>>::context::<&str>::{closure#0}
Unexecuted instantiation: <core::option::Option<_> as anyhow::Context<_, core::convert::Infallible>>::context::<_>::{closure#0}
88
4.82M
    }
<core::option::Option<alloc::boxed::Box<dyn disk::DiskFile>> as anyhow::Context<alloc::boxed::Box<dyn disk::DiskFile>, core::convert::Infallible>>::context::<&str>
Line
Count
Source
83
1.01k
    fn context<C>(self, context: C) -> Result<T, Error>
84
1.01k
    where
85
1.01k
        C: Display + Send + Sync + 'static,
86
    {
87
1.01k
        self.ok_or_else(|| Error::from_display(context, backtrace!()))
88
1.01k
    }
Unexecuted instantiation: <core::option::Option<alloc::boxed::Box<dyn devices::virtio::virtio_device::SharedMemoryMapper>> as anyhow::Context<alloc::boxed::Box<dyn devices::virtio::virtio_device::SharedMemoryMapper>, core::convert::Infallible>>::context::<&str>
Unexecuted instantiation: <core::option::Option<resources::Alloc> as anyhow::Context<resources::Alloc, core::convert::Infallible>>::context::<&str>
Unexecuted instantiation: <core::option::Option<vm_control::VmMemoryRegionId> as anyhow::Context<vm_control::VmMemoryRegionId, core::convert::Infallible>>::context::<&str>
Unexecuted instantiation: <core::option::Option<vhost::vsock::Vsock> as anyhow::Context<vhost::vsock::Vsock, core::convert::Infallible>>::context::<&str>
Unexecuted instantiation: <core::option::Option<resources::address_range::AddressRange> as anyhow::Context<resources::address_range::AddressRange, core::convert::Infallible>>::context::<&str>
Unexecuted instantiation: <core::option::Option<devices::bus::HotPlugKey> as anyhow::Context<devices::bus::HotPlugKey, core::convert::Infallible>>::context::<&str>
Unexecuted instantiation: <core::option::Option<p9::server::Server> as anyhow::Context<p9::server::Server, core::convert::Infallible>>::context::<&str>
<core::option::Option<vm_memory::guest_address::GuestAddress> as anyhow::Context<vm_memory::guest_address::GuestAddress, core::convert::Infallible>>::context::<&str>
Line
Count
Source
83
2.47M
    fn context<C>(self, context: C) -> Result<T, Error>
84
2.47M
    where
85
2.47M
        C: Display + Send + Sync + 'static,
86
    {
87
2.47M
        self.ok_or_else(|| Error::from_display(context, backtrace!()))
88
2.47M
    }
Unexecuted instantiation: <core::option::Option<devices::virtio::queue::Queue> as anyhow::Context<devices::virtio::queue::Queue, core::convert::Infallible>>::context::<&str>
Unexecuted instantiation: <core::option::Option<base::sys::unix::tube::Tube> as anyhow::Context<base::sys::unix::tube::Tube, core::convert::Infallible>>::context::<&str>
Unexecuted instantiation: <core::option::Option<devices::virtio::scsi::device::Targets> as anyhow::Context<devices::virtio::scsi::device::Targets, core::convert::Infallible>>::context::<&str>
Unexecuted instantiation: <core::option::Option<&mut devices::virtio::iommu::memory_mapper::ExportState> as anyhow::Context<&mut devices::virtio::iommu::memory_mapper::ExportState, core::convert::Infallible>>::context::<&str>
Unexecuted instantiation: <core::option::Option<&alloc::boxed::Box<dyn disk::DiskFile>> as anyhow::Context<&alloc::boxed::Box<dyn disk::DiskFile>, core::convert::Infallible>>::context::<&str>
Unexecuted instantiation: <core::option::Option<&devices::bus::HotPlugKey> as anyhow::Context<&devices::bus::HotPlugKey, core::convert::Infallible>>::context::<&str>
Unexecuted instantiation: <core::option::Option<&devices::virtio::interrupt::Interrupt> as anyhow::Context<&devices::virtio::interrupt::Interrupt, core::convert::Infallible>>::context::<&str>
Unexecuted instantiation: <core::option::Option<&devices::virtio::vhost_user_backend::handler::VhostBackendReqConnection> as anyhow::Context<&devices::virtio::vhost_user_backend::handler::VhostBackendReqConnection, core::convert::Infallible>>::context::<&str>
Unexecuted instantiation: <core::option::Option<&(base::worker_thread::WorkerThread<()>, futures_channel::mpsc::UnboundedSender<devices::virtio::block::asynchronous::WorkerCmd>)> as anyhow::Context<&(base::worker_thread::WorkerThread<()>, futures_channel::mpsc::UnboundedSender<devices::virtio::block::asynchronous::WorkerCmd>), core::convert::Infallible>>::context::<&str>
Unexecuted instantiation: <core::option::Option<&(u32, u32)> as anyhow::Context<&(u32, u32), core::convert::Infallible>>::context::<&str>
<core::option::Option<u32> as anyhow::Context<u32, core::convert::Infallible>>::context::<&str>
Line
Count
Source
83
2.35M
    fn context<C>(self, context: C) -> Result<T, Error>
84
2.35M
    where
85
2.35M
        C: Display + Send + Sync + 'static,
86
    {
87
2.35M
        self.ok_or_else(|| Error::from_display(context, backtrace!()))
88
2.35M
    }
Unexecuted instantiation: <core::option::Option<u64> as anyhow::Context<u64, core::convert::Infallible>>::context::<&str>
Unexecuted instantiation: <core::option::Option<anyhow::Error> as anyhow::Context<anyhow::Error, core::convert::Infallible>>::context::<&str>
Unexecuted instantiation: <core::option::Option<_> as anyhow::Context<_, core::convert::Infallible>>::context::<_>
89
90
0
    fn with_context<C, F>(self, context: F) -> Result<T, Error>
91
0
    where
92
0
        C: Display + Send + Sync + 'static,
93
0
        F: FnOnce() -> C,
94
    {
95
0
        self.ok_or_else(|| Error::from_display(context(), backtrace!()))
Unexecuted instantiation: <core::option::Option<vmm_vhost::message::VhostUserProtocolFeatures> as anyhow::Context<vmm_vhost::message::VhostUserProtocolFeatures, core::convert::Infallible>>::with_context::<alloc::string::String, <devices::virtio::vhost_user_backend::handler::DeviceRequestHandler<devices::virtio::vhost_user_backend::fs::FsBackend> as vmm_vhost::backend_server::Backend>::check_device_state::{closure#2}>::{closure#0}
Unexecuted instantiation: <core::option::Option<vmm_vhost::message::VhostUserProtocolFeatures> as anyhow::Context<vmm_vhost::message::VhostUserProtocolFeatures, core::convert::Infallible>>::with_context::<alloc::string::String, <devices::virtio::vhost_user_backend::handler::DeviceRequestHandler<devices::virtio::vhost_user_backend::wl::WlBackend> as vmm_vhost::backend_server::Backend>::check_device_state::{closure#2}>::{closure#0}
Unexecuted instantiation: <core::option::Option<vmm_vhost::message::VhostUserProtocolFeatures> as anyhow::Context<vmm_vhost::message::VhostUserProtocolFeatures, core::convert::Infallible>>::with_context::<alloc::string::String, <devices::virtio::vhost_user_backend::handler::DeviceRequestHandler<devices::virtio::vhost_user_backend::block::BlockBackend> as vmm_vhost::backend_server::Backend>::check_device_state::{closure#2}>::{closure#0}
Unexecuted instantiation: <core::option::Option<vmm_vhost::message::VhostUserProtocolFeatures> as anyhow::Context<vmm_vhost::message::VhostUserProtocolFeatures, core::convert::Infallible>>::with_context::<alloc::string::String, <devices::virtio::vhost_user_backend::handler::DeviceRequestHandler<devices::virtio::vhost_user_backend::console::ConsoleBackend> as vmm_vhost::backend_server::Backend>::check_device_state::{closure#2}>::{closure#0}
Unexecuted instantiation: <core::option::Option<devices::power::hvc::DeviceManagerHypercall> as anyhow::Context<devices::power::hvc::DeviceManagerHypercall, core::convert::Infallible>>::with_context::<alloc::string::String, <devices::power::hvc::HvcDevicePowerManager>::handle::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::option::Option<&mut devices::power::PowerDomain> as anyhow::Context<&mut devices::power::PowerDomain, core::convert::Infallible>>::with_context::<alloc::string::String, <devices::power::DevicePowerManager>::power_on::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::option::Option<&mut devices::power::PowerDomain> as anyhow::Context<&mut devices::power::PowerDomain, core::convert::Infallible>>::with_context::<alloc::string::String, <devices::power::DevicePowerManager>::power_off::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::option::Option<&devices::virtio::virtio_pci_device::QueueEvent> as anyhow::Context<&devices::virtio::virtio_pci_device::QueueEvent, core::convert::Infallible>>::with_context::<alloc::string::String, <devices::virtio::virtio_pci_device::VirtioPciDevice as devices::suspendable::Suspendable>::restore::{closure#3}>::{closure#0}
Unexecuted instantiation: <core::option::Option<&devices::virtio::queue::QueueConfig> as anyhow::Context<&devices::virtio::queue::QueueConfig, core::convert::Infallible>>::with_context::<alloc::string::String, <devices::virtio::virtio_pci_device::VirtioPciDevice as devices::suspendable::Suspendable>::restore::{closure#2}>::{closure#0}
Unexecuted instantiation: <core::option::Option<&devices::virtio::console::worker::WorkerPort> as anyhow::Context<&devices::virtio::console::worker::WorkerPort, core::convert::Infallible>>::with_context::<alloc::string::String, devices::virtio::console::control::process_control_msg::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::option::Option<(u64, u64, devices::bus::BusEntry)> as anyhow::Context<(u64, u64, devices::bus::BusEntry), core::convert::Infallible>>::with_context::<alloc::string::String, <devices::bus::Bus>::handle_hypercall::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::option::Option<&alloc::vec::Vec<u8>> as anyhow::Context<&alloc::vec::Vec<u8>, core::convert::Infallible>>::with_context::<alloc::string::String, jail::helpers::set_embedded_bpf_program::{closure#0}>::{closure#0}
Unexecuted instantiation: <core::option::Option<_> as anyhow::Context<_, core::convert::Infallible>>::with_context::<_, _>::{closure#0}
96
0
    }
Unexecuted instantiation: <core::option::Option<vmm_vhost::message::VhostUserProtocolFeatures> as anyhow::Context<vmm_vhost::message::VhostUserProtocolFeatures, core::convert::Infallible>>::with_context::<alloc::string::String, <devices::virtio::vhost_user_backend::handler::DeviceRequestHandler<devices::virtio::vhost_user_backend::fs::FsBackend> as vmm_vhost::backend_server::Backend>::check_device_state::{closure#2}>
Unexecuted instantiation: <core::option::Option<vmm_vhost::message::VhostUserProtocolFeatures> as anyhow::Context<vmm_vhost::message::VhostUserProtocolFeatures, core::convert::Infallible>>::with_context::<alloc::string::String, <devices::virtio::vhost_user_backend::handler::DeviceRequestHandler<devices::virtio::vhost_user_backend::wl::WlBackend> as vmm_vhost::backend_server::Backend>::check_device_state::{closure#2}>
Unexecuted instantiation: <core::option::Option<vmm_vhost::message::VhostUserProtocolFeatures> as anyhow::Context<vmm_vhost::message::VhostUserProtocolFeatures, core::convert::Infallible>>::with_context::<alloc::string::String, <devices::virtio::vhost_user_backend::handler::DeviceRequestHandler<devices::virtio::vhost_user_backend::block::BlockBackend> as vmm_vhost::backend_server::Backend>::check_device_state::{closure#2}>
Unexecuted instantiation: <core::option::Option<vmm_vhost::message::VhostUserProtocolFeatures> as anyhow::Context<vmm_vhost::message::VhostUserProtocolFeatures, core::convert::Infallible>>::with_context::<alloc::string::String, <devices::virtio::vhost_user_backend::handler::DeviceRequestHandler<devices::virtio::vhost_user_backend::console::ConsoleBackend> as vmm_vhost::backend_server::Backend>::check_device_state::{closure#2}>
Unexecuted instantiation: <core::option::Option<devices::power::hvc::DeviceManagerHypercall> as anyhow::Context<devices::power::hvc::DeviceManagerHypercall, core::convert::Infallible>>::with_context::<alloc::string::String, <devices::power::hvc::HvcDevicePowerManager>::handle::{closure#0}>
Unexecuted instantiation: <core::option::Option<&mut devices::power::PowerDomain> as anyhow::Context<&mut devices::power::PowerDomain, core::convert::Infallible>>::with_context::<alloc::string::String, <devices::power::DevicePowerManager>::power_on::{closure#0}>
Unexecuted instantiation: <core::option::Option<&mut devices::power::PowerDomain> as anyhow::Context<&mut devices::power::PowerDomain, core::convert::Infallible>>::with_context::<alloc::string::String, <devices::power::DevicePowerManager>::power_off::{closure#0}>
Unexecuted instantiation: <core::option::Option<&devices::virtio::virtio_pci_device::QueueEvent> as anyhow::Context<&devices::virtio::virtio_pci_device::QueueEvent, core::convert::Infallible>>::with_context::<alloc::string::String, <devices::virtio::virtio_pci_device::VirtioPciDevice as devices::suspendable::Suspendable>::restore::{closure#3}>
Unexecuted instantiation: <core::option::Option<&devices::virtio::queue::QueueConfig> as anyhow::Context<&devices::virtio::queue::QueueConfig, core::convert::Infallible>>::with_context::<alloc::string::String, <devices::virtio::virtio_pci_device::VirtioPciDevice as devices::suspendable::Suspendable>::restore::{closure#2}>
Unexecuted instantiation: <core::option::Option<&devices::virtio::console::worker::WorkerPort> as anyhow::Context<&devices::virtio::console::worker::WorkerPort, core::convert::Infallible>>::with_context::<alloc::string::String, devices::virtio::console::control::process_control_msg::{closure#0}>
Unexecuted instantiation: <core::option::Option<(u64, u64, devices::bus::BusEntry)> as anyhow::Context<(u64, u64, devices::bus::BusEntry), core::convert::Infallible>>::with_context::<alloc::string::String, <devices::bus::Bus>::handle_hypercall::{closure#0}>
Unexecuted instantiation: <core::option::Option<&alloc::vec::Vec<u8>> as anyhow::Context<&alloc::vec::Vec<u8>, core::convert::Infallible>>::with_context::<alloc::string::String, jail::helpers::set_embedded_bpf_program::{closure#0}>
Unexecuted instantiation: <core::option::Option<_> as anyhow::Context<_, core::convert::Infallible>>::with_context::<_, _>
97
}
98
99
impl<C, E> Debug for ContextError<C, E>
100
where
101
    C: Display,
102
    E: Debug,
103
{
104
0
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
105
0
        f.debug_struct("Error")
106
0
            .field("context", &Quoted(&self.context))
107
0
            .field("source", &self.error)
108
0
            .finish()
109
0
    }
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, base::tube::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, base::errno::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, vm_memory::guest_memory::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<devices::pci::coiommu::Error, base::errno::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<devices::pci::coiommu::Error, vm_memory::guest_memory::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, ciborium::de::error::Error<std::io::error::Error>> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, ciborium::ser::error::Error<std::io::error::Error>> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, vhost::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, resources::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, disk::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, vmm_vhost::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, base::mmap::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::vfio::VfioError> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, cros_async::io_ext::AsyncError> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, vm_control::api::ApiClientError> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, std::time::SystemTimeError> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, vm_memory::guest_memory::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::pci::pci_device::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::virtio::iommu::IommuError> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::irqchip::ioapic::IoapicError> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, std::sync::mpsc::RecvError> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::virtio::vhost_user_frontend::error::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ControlError> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ExecuteError> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, minijail::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, minijail::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, anyhow::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, rutabaga_gfx::rutabaga_utils::RutabagaError> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, base::tube::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, base::errno::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, std::io::error::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, anyhow::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, std::io::error::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<_, _> as core::fmt::Debug>::fmt
110
}
111
112
impl<C, E> Display for ContextError<C, E>
113
where
114
    C: Display,
115
{
116
0
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
117
0
        Display::fmt(&self.context, f)
118
0
    }
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, base::tube::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, base::errno::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, vm_memory::guest_memory::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<devices::pci::coiommu::Error, base::errno::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<devices::pci::coiommu::Error, vm_memory::guest_memory::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, ciborium::de::error::Error<std::io::error::Error>> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, ciborium::ser::error::Error<std::io::error::Error>> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, vhost::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, resources::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, disk::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, vmm_vhost::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, base::mmap::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::vfio::VfioError> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, cros_async::io_ext::AsyncError> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, vm_control::api::ApiClientError> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, std::time::SystemTimeError> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, vm_memory::guest_memory::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::pci::pci_device::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::virtio::iommu::IommuError> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::irqchip::ioapic::IoapicError> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, std::sync::mpsc::RecvError> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::virtio::vhost_user_frontend::error::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ControlError> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ExecuteError> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, minijail::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, minijail::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, anyhow::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, rutabaga_gfx::rutabaga_utils::RutabagaError> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, base::tube::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, base::errno::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, std::io::error::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, anyhow::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<&str, std::io::error::Error> as core::fmt::Display>::fmt
Unexecuted instantiation: <anyhow::error::ContextError<_, _> as core::fmt::Display>::fmt
119
}
120
121
impl<C, E> StdError for ContextError<C, E>
122
where
123
    C: Display,
124
    E: StdError + 'static,
125
{
126
    #[cfg(backtrace)]
127
    fn backtrace(&self) -> Option<&Backtrace> {
128
        self.error.backtrace()
129
    }
130
131
0
    fn source(&self) -> Option<&(dyn StdError + 'static)> {
132
0
        Some(&self.error)
133
0
    }
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, base::tube::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, base::errno::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, vm_memory::guest_memory::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<devices::pci::coiommu::Error, base::errno::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<devices::pci::coiommu::Error, vm_memory::guest_memory::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, ciborium::de::error::Error<std::io::error::Error>> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, ciborium::ser::error::Error<std::io::error::Error>> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, vhost::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, resources::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, disk::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, vmm_vhost::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, base::mmap::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::vfio::VfioError> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, cros_async::io_ext::AsyncError> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, vm_control::api::ApiClientError> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, std::time::SystemTimeError> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, vm_memory::guest_memory::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::pci::pci_device::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::virtio::iommu::IommuError> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::irqchip::ioapic::IoapicError> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, std::sync::mpsc::RecvError> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::virtio::vhost_user_frontend::error::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ControlError> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ExecuteError> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, minijail::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, minijail::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, rutabaga_gfx::rutabaga_utils::RutabagaError> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, base::tube::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, base::errno::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, std::io::error::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, std::io::error::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<_, _> as core::error::Error>::source
134
}
135
136
impl<C> StdError for ContextError<C, Error>
137
where
138
    C: Display,
139
{
140
    #[cfg(backtrace)]
141
    fn backtrace(&self) -> Option<&Backtrace> {
142
        Some(self.error.backtrace())
143
    }
144
145
0
    fn source(&self) -> Option<&(dyn StdError + 'static)> {
146
0
        Some(unsafe { crate::ErrorImpl::error(self.error.inner.by_ref()) })
147
0
    }
Unexecuted instantiation: <anyhow::error::ContextError<alloc::string::String, anyhow::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<&str, anyhow::Error> as core::error::Error>::source
Unexecuted instantiation: <anyhow::error::ContextError<_, anyhow::Error> as core::error::Error>::source
148
}
149
150
struct Quoted<C>(C);
151
152
impl<C> Debug for Quoted<C>
153
where
154
    C: Display,
155
{
156
0
    fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
157
0
        formatter.write_char('"')?;
158
0
        Quoted(&mut *formatter).write_fmt(format_args!("{}", self.0))?;
159
0
        formatter.write_char('"')?;
160
0
        Ok(())
161
0
    }
Unexecuted instantiation: <anyhow::context::Quoted<&devices::pci::coiommu::Error> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::context::Quoted<&alloc::string::String> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::context::Quoted<&&str> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::context::Quoted<&alloc::string::String> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::context::Quoted<&&str> as core::fmt::Debug>::fmt
Unexecuted instantiation: <anyhow::context::Quoted<_> as core::fmt::Debug>::fmt
162
}
163
164
impl Write for Quoted<&mut fmt::Formatter<'_>> {
165
0
    fn write_str(&mut self, s: &str) -> fmt::Result {
166
0
        Display::fmt(&s.escape_debug(), self.0)
167
0
    }
168
}
169
170
pub(crate) mod private {
171
    use super::*;
172
173
    pub trait Sealed {}
174
175
    impl<T, E> Sealed for Result<T, E> where E: ext::StdError {}
176
    impl<T> Sealed for Option<T> {}
177
}