/rust/registry/src/index.crates.io-6f17d22bba15001f/anyhow-1.0.58/src/ptr.rs
Line | Count | Source (jump to first uncovered line) |
1 | | use alloc::boxed::Box; |
2 | | use core::marker::PhantomData; |
3 | | use core::ptr::NonNull; |
4 | | |
5 | | #[repr(transparent)] |
6 | | pub struct Own<T> |
7 | | where |
8 | | T: ?Sized, |
9 | | { |
10 | | pub ptr: NonNull<T>, |
11 | | } |
12 | | |
13 | | unsafe impl<T> Send for Own<T> where T: ?Sized {} |
14 | | |
15 | | unsafe impl<T> Sync for Own<T> where T: ?Sized {} |
16 | | |
17 | | impl<T> Copy for Own<T> where T: ?Sized {} |
18 | | |
19 | | impl<T> Clone for Own<T> |
20 | | where |
21 | | T: ?Sized, |
22 | | { |
23 | 0 | fn clone(&self) -> Self { |
24 | 0 | *self |
25 | 0 | } |
26 | | } |
27 | | |
28 | | impl<T> Own<T> |
29 | | where |
30 | | T: ?Sized, |
31 | | { |
32 | 662 | pub fn new(ptr: Box<T>) -> Self { |
33 | 662 | Own { |
34 | 662 | ptr: unsafe { NonNull::new_unchecked(Box::into_raw(ptr)) }, |
35 | 662 | } |
36 | 662 | } Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<base::mmap::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<base::errno::Error>>>::new <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::wrapper::MessageError<alloc::string::String>>>>::new Line | Count | Source | 32 | 355 | pub fn new(ptr: Box<T>) -> Self { | 33 | 355 | Own { | 34 | 355 | ptr: unsafe { NonNull::new_unchecked(Box::into_raw(ptr)) }, | 35 | 355 | } | 36 | 355 | } |
<anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::wrapper::MessageError<&str>>>>::new Line | Count | Source | 32 | 32 | pub fn new(ptr: Box<T>) -> Self { | 33 | 32 | Own { | 34 | 32 | ptr: unsafe { NonNull::new_unchecked(Box::into_raw(ptr)) }, | 35 | 32 | } | 36 | 32 | } |
Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::wrapper::BoxedError>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, anyhow::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, serde_json::error::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, vm_memory::guest_memory::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, base::tube::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, base::errno::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, vm_memory::guest_memory::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, base::errno::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, disk::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, resources::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vmm_vhost::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vhost::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, cros_async::io_ext::AsyncError>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vm_control::api::ApiClientError>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, serde_json::error::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vm_memory::guest_memory::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::mmap::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::pit::PitError>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::vfio::VfioError>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::pci::pci_device::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::iommu::IommuError>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::vhost::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::irqchip::ioapic::IoapicError>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::irqchip::userspace::TimerWorkerError>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::sync::mpsc::RecvError>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::vhost_user_frontend::error::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ControlError>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ExecuteError>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::wrapper::DisplayError<&str>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<vmm_vhost::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<vhost::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<cros_async::io_ext::AsyncError>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<lz4_flex::frame::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<serde_json::error::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<base::volatile_memory::VolatileMemoryError>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<base::tube::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::serial_device::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::pci::pci_device::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::pci::msix::MsixError>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::virtio::vhost::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::irqchip::ioapic::IoapicError>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::virtio::vhost_user_frontend::error::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::virtio::vhost::user::device::handler::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, minijail::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, minijail::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::wrapper::DisplayError<alloc::string::String>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<minijail::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<base::errno::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, std::io::error::Error>>>>::new <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, anyhow::Error>>>>::new Line | Count | Source | 32 | 275 | pub fn new(ptr: Box<T>) -> Self { | 33 | 275 | Own { | 34 | 275 | ptr: unsafe { NonNull::new_unchecked(Box::into_raw(ptr)) }, | 35 | 275 | } | 36 | 275 | } |
Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::tube::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::io::error::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<std::io::error::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::errno::Error>>>>::new |
37 | | |
38 | 1.32k | pub fn cast<U: CastTo>(self) -> Own<U::Target> { |
39 | 1.32k | Own { |
40 | 1.32k | ptr: self.ptr.cast(), |
41 | 1.32k | } |
42 | 1.32k | } Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<base::mmap::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<base::errno::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<base::mmap::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<base::errno::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<base::mmap::Error>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<base::errno::Error>> <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::wrapper::MessageError<alloc::string::String>>>>::cast::<anyhow::error::ErrorImpl> Line | Count | Source | 38 | 355 | pub fn cast<U: CastTo>(self) -> Own<U::Target> { | 39 | 355 | Own { | 40 | 355 | ptr: self.ptr.cast(), | 41 | 355 | } | 42 | 355 | } |
<anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::wrapper::MessageError<&str>>>>::cast::<anyhow::error::ErrorImpl> Line | Count | Source | 38 | 32 | pub fn cast<U: CastTo>(self) -> Own<U::Target> { | 39 | 32 | Own { | 40 | 32 | ptr: self.ptr.cast(), | 41 | 32 | } | 42 | 32 | } |
Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::wrapper::BoxedError>>>::cast::<anyhow::error::ErrorImpl> <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::wrapper::MessageError<alloc::string::String>>> Line | Count | Source | 38 | 355 | pub fn cast<U: CastTo>(self) -> Own<U::Target> { | 39 | 355 | Own { | 40 | 355 | ptr: self.ptr.cast(), | 41 | 355 | } | 42 | 355 | } |
<anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::wrapper::MessageError<&str>>> Line | Count | Source | 38 | 32 | pub fn cast<U: CastTo>(self) -> Own<U::Target> { | 39 | 32 | Own { | 40 | 32 | ptr: self.ptr.cast(), | 41 | 32 | } | 42 | 32 | } |
Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<alloc::boxed::Box<dyn core::error::Error + core::marker::Send + core::marker::Sync>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<alloc::string::String>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<&str>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::wrapper::BoxedError>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, anyhow::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, serde_json::error::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, vm_memory::guest_memory::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, base::tube::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, base::errno::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, vm_memory::guest_memory::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, base::errno::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, disk::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, resources::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vmm_vhost::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vhost::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, cros_async::io_ext::AsyncError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vm_control::api::ApiClientError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, serde_json::error::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vm_memory::guest_memory::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::mmap::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::pit::PitError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::vfio::VfioError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::pci::pci_device::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::iommu::IommuError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::vhost::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::irqchip::ioapic::IoapicError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::irqchip::userspace::TimerWorkerError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::sync::mpsc::RecvError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::vhost_user_frontend::error::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ControlError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ExecuteError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::wrapper::DisplayError<&str>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<vmm_vhost::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<vhost::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<cros_async::io_ext::AsyncError>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<lz4_flex::frame::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<serde_json::error::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<base::volatile_memory::VolatileMemoryError>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<base::tube::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::serial_device::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::pci::pci_device::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::pci::msix::MsixError>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::virtio::vhost::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::irqchip::ioapic::IoapicError>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::virtio::vhost_user_frontend::error::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::virtio::vhost::user::device::handler::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<alloc::string::String>, anyhow::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<alloc::string::String>, serde_json::error::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<alloc::string::String>, vm_memory::guest_memory::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<alloc::string::String>, base::tube::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<alloc::string::String>, base::errno::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<devices::pci::coiommu::Error>, vm_memory::guest_memory::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<devices::pci::coiommu::Error>, base::errno::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, disk::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, resources::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, vmm_vhost::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, vhost::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, cros_async::io_ext::AsyncError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, vm_control::api::ApiClientError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, serde_json::error::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, vm_memory::guest_memory::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, base::mmap::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::pit::PitError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::vfio::VfioError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::pci::pci_device::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::virtio::iommu::IommuError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::virtio::vhost::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::irqchip::ioapic::IoapicError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::irqchip::userspace::TimerWorkerError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, std::sync::mpsc::RecvError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::virtio::vhost_user_frontend::error::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::virtio::block::asynchronous::ControlError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::virtio::block::asynchronous::ExecuteError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, core::mem::manually_drop::ManuallyDrop<anyhow::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, core::mem::manually_drop::ManuallyDrop<serde_json::error::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, core::mem::manually_drop::ManuallyDrop<vm_memory::guest_memory::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, core::mem::manually_drop::ManuallyDrop<base::tube::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, core::mem::manually_drop::ManuallyDrop<base::errno::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, anyhow::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, serde_json::error::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, vm_memory::guest_memory::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, base::tube::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, base::errno::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, core::mem::manually_drop::ManuallyDrop<vm_memory::guest_memory::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, core::mem::manually_drop::ManuallyDrop<base::errno::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, vm_memory::guest_memory::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, base::errno::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<disk::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<resources::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<vmm_vhost::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<vhost::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<cros_async::io_ext::AsyncError>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<vm_control::api::ApiClientError>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<serde_json::error::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<vm_memory::guest_memory::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<base::mmap::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::pit::PitError>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::vfio::VfioError>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::pci::pci_device::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::virtio::iommu::IommuError>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::virtio::vhost::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::irqchip::ioapic::IoapicError>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::irqchip::userspace::TimerWorkerError>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<std::sync::mpsc::RecvError>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::virtio::vhost_user_frontend::error::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::virtio::block::asynchronous::ControlError>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::virtio::block::asynchronous::ExecuteError>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, disk::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, resources::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vmm_vhost::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vhost::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, cros_async::io_ext::AsyncError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vm_control::api::ApiClientError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, serde_json::error::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vm_memory::guest_memory::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::mmap::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::pit::PitError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::vfio::VfioError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::pci::pci_device::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::iommu::IommuError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::vhost::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::irqchip::ioapic::IoapicError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::irqchip::userspace::TimerWorkerError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::sync::mpsc::RecvError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::vhost_user_frontend::error::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ControlError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ExecuteError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::wrapper::DisplayError<&str>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<vmm_vhost::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<vhost::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<cros_async::io_ext::AsyncError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<lz4_flex::frame::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<serde_json::error::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<base::volatile_memory::VolatileMemoryError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<base::tube::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<devices::serial_device::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<devices::pci::pci_device::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<devices::pci::msix::MsixError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<devices::virtio::vhost::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<devices::irqchip::ioapic::IoapicError>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<devices::virtio::vhost_user_frontend::error::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<devices::virtio::vhost::user::device::handler::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<vmm_vhost::Error>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<vhost::Error>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<cros_async::io_ext::AsyncError>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<lz4_flex::frame::Error>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<serde_json::error::Error>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<base::volatile_memory::VolatileMemoryError>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<base::tube::Error>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<devices::serial_device::Error>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<devices::pci::pci_device::Error>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<devices::pci::msix::MsixError>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<devices::virtio::vhost::Error>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<devices::irqchip::ioapic::IoapicError>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<devices::virtio::vhost_user_frontend::error::Error>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<devices::virtio::vhost::user::device::handler::Error>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, minijail::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, minijail::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::wrapper::DisplayError<alloc::string::String>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<minijail::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<alloc::string::String>, minijail::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, minijail::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, core::mem::manually_drop::ManuallyDrop<minijail::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, minijail::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<minijail::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, minijail::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::wrapper::DisplayError<alloc::string::String>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<minijail::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<minijail::Error>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<base::errno::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<base::errno::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<base::errno::Error>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, std::io::error::Error>>>>::cast::<anyhow::error::ErrorImpl> <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, anyhow::Error>>>>::cast::<anyhow::error::ErrorImpl> Line | Count | Source | 38 | 275 | pub fn cast<U: CastTo>(self) -> Own<U::Target> { | 39 | 275 | Own { | 40 | 275 | ptr: self.ptr.cast(), | 41 | 275 | } | 42 | 275 | } |
Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::tube::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::io::error::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<std::io::error::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<alloc::string::String>, std::io::error::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, anyhow::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, base::tube::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, std::io::error::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, core::mem::manually_drop::ManuallyDrop<std::io::error::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, std::io::error::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<anyhow::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<base::tube::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<std::io::error::Error>>>> <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, anyhow::Error>>> Line | Count | Source | 38 | 275 | pub fn cast<U: CastTo>(self) -> Own<U::Target> { | 39 | 275 | Own { | 40 | 275 | ptr: self.ptr.cast(), | 41 | 275 | } | 42 | 275 | } |
Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::tube::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::io::error::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<std::io::error::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<std::io::error::Error>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::errno::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, base::errno::Error>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<base::errno::Error>>>> Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::errno::Error>>> |
43 | | |
44 | 662 | pub unsafe fn boxed(self) -> Box<T> { |
45 | 662 | Box::from_raw(self.ptr.as_ptr()) |
46 | 662 | } Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<base::mmap::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<base::errno::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<base::mmap::Error>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<base::errno::Error>>>::boxed <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::wrapper::MessageError<alloc::string::String>>>>::boxed Line | Count | Source | 44 | 355 | pub unsafe fn boxed(self) -> Box<T> { | 45 | 355 | Box::from_raw(self.ptr.as_ptr()) | 46 | 355 | } |
<anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::wrapper::MessageError<&str>>>>::boxed Line | Count | Source | 44 | 32 | pub unsafe fn boxed(self) -> Box<T> { | 45 | 32 | Box::from_raw(self.ptr.as_ptr()) | 46 | 32 | } |
Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<alloc::boxed::Box<dyn core::error::Error + core::marker::Send + core::marker::Sync>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<alloc::string::String>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<&str>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::wrapper::BoxedError>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<alloc::string::String>, anyhow::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<alloc::string::String>, serde_json::error::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<alloc::string::String>, vm_memory::guest_memory::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<alloc::string::String>, base::tube::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<alloc::string::String>, base::errno::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<devices::pci::coiommu::Error>, vm_memory::guest_memory::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<devices::pci::coiommu::Error>, base::errno::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, disk::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, resources::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, vmm_vhost::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, vhost::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, cros_async::io_ext::AsyncError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, vm_control::api::ApiClientError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, serde_json::error::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, vm_memory::guest_memory::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, base::mmap::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::pit::PitError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::vfio::VfioError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::pci::pci_device::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::virtio::iommu::IommuError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::virtio::vhost::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::irqchip::ioapic::IoapicError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::irqchip::userspace::TimerWorkerError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, std::sync::mpsc::RecvError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::virtio::vhost_user_frontend::error::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::virtio::block::asynchronous::ControlError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, devices::virtio::block::asynchronous::ExecuteError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, core::mem::manually_drop::ManuallyDrop<anyhow::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, core::mem::manually_drop::ManuallyDrop<serde_json::error::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, core::mem::manually_drop::ManuallyDrop<vm_memory::guest_memory::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, core::mem::manually_drop::ManuallyDrop<base::tube::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, core::mem::manually_drop::ManuallyDrop<base::errno::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, anyhow::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, serde_json::error::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, vm_memory::guest_memory::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, base::tube::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, base::errno::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, core::mem::manually_drop::ManuallyDrop<vm_memory::guest_memory::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, core::mem::manually_drop::ManuallyDrop<base::errno::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, vm_memory::guest_memory::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, base::errno::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<disk::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<resources::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<vmm_vhost::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<vhost::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<cros_async::io_ext::AsyncError>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<vm_control::api::ApiClientError>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<serde_json::error::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<vm_memory::guest_memory::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<base::mmap::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::pit::PitError>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::vfio::VfioError>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::pci::pci_device::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::virtio::iommu::IommuError>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::virtio::vhost::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::irqchip::ioapic::IoapicError>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::irqchip::userspace::TimerWorkerError>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<std::sync::mpsc::RecvError>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::virtio::vhost_user_frontend::error::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::virtio::block::asynchronous::ControlError>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<devices::virtio::block::asynchronous::ExecuteError>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, disk::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, resources::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vmm_vhost::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vhost::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, cros_async::io_ext::AsyncError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vm_control::api::ApiClientError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, serde_json::error::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vm_memory::guest_memory::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::mmap::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::pit::PitError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::vfio::VfioError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::pci::pci_device::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::iommu::IommuError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::vhost::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::irqchip::ioapic::IoapicError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::irqchip::userspace::TimerWorkerError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::sync::mpsc::RecvError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::vhost_user_frontend::error::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ControlError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ExecuteError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::wrapper::DisplayError<&str>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<vmm_vhost::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<vhost::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<cros_async::io_ext::AsyncError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<lz4_flex::frame::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<serde_json::error::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<base::volatile_memory::VolatileMemoryError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<base::tube::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<devices::serial_device::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<devices::pci::pci_device::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<devices::pci::msix::MsixError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<devices::virtio::vhost::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<devices::irqchip::ioapic::IoapicError>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<devices::virtio::vhost_user_frontend::error::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<devices::virtio::vhost::user::device::handler::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<vmm_vhost::Error>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<vhost::Error>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<cros_async::io_ext::AsyncError>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<lz4_flex::frame::Error>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<serde_json::error::Error>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<base::volatile_memory::VolatileMemoryError>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<base::tube::Error>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::serial_device::Error>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::pci::pci_device::Error>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::pci::msix::MsixError>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::virtio::vhost::Error>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::irqchip::ioapic::IoapicError>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::virtio::vhost_user_frontend::error::Error>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<devices::virtio::vhost::user::device::handler::Error>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<alloc::string::String>, minijail::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, minijail::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, core::mem::manually_drop::ManuallyDrop<minijail::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, minijail::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<minijail::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, minijail::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::wrapper::DisplayError<alloc::string::String>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<minijail::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<minijail::Error>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<base::errno::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<base::errno::Error>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<alloc::string::String>, std::io::error::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, anyhow::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, base::tube::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, std::io::error::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, core::mem::manually_drop::ManuallyDrop<std::io::error::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, std::io::error::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<anyhow::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<base::tube::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<std::io::error::Error>>>>>::boxed <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, anyhow::Error>>>>::boxed Line | Count | Source | 44 | 275 | pub unsafe fn boxed(self) -> Box<T> { | 45 | 275 | Box::from_raw(self.ptr.as_ptr()) | 46 | 275 | } |
Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::tube::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::io::error::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<core::mem::manually_drop::ManuallyDrop<std::io::error::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<std::io::error::Error>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<core::mem::manually_drop::ManuallyDrop<&str>, base::errno::Error>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, core::mem::manually_drop::ManuallyDrop<base::errno::Error>>>>>::boxed Unexecuted instantiation: <anyhow::ptr::Own<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::errno::Error>>>>::boxed |
47 | | |
48 | 0 | pub fn by_ref(&self) -> Ref<T> { |
49 | 0 | Ref { |
50 | 0 | ptr: self.ptr, |
51 | 0 | lifetime: PhantomData, |
52 | 0 | } |
53 | 0 | } |
54 | | |
55 | 0 | pub fn by_mut(&mut self) -> Mut<T> { |
56 | 0 | Mut { |
57 | 0 | ptr: self.ptr, |
58 | 0 | lifetime: PhantomData, |
59 | 0 | } |
60 | 0 | } |
61 | | } |
62 | | |
63 | | #[repr(transparent)] |
64 | | pub struct Ref<'a, T> |
65 | | where |
66 | | T: ?Sized, |
67 | | { |
68 | | pub ptr: NonNull<T>, |
69 | | lifetime: PhantomData<&'a T>, |
70 | | } |
71 | | |
72 | | impl<'a, T> Copy for Ref<'a, T> where T: ?Sized {} |
73 | | |
74 | | impl<'a, T> Clone for Ref<'a, T> |
75 | | where |
76 | | T: ?Sized, |
77 | | { |
78 | 0 | fn clone(&self) -> Self { |
79 | 0 | *self |
80 | 0 | } |
81 | | } |
82 | | |
83 | | impl<'a, T> Ref<'a, T> |
84 | | where |
85 | | T: ?Sized, |
86 | | { |
87 | 0 | pub fn new(ptr: &'a T) -> Self { |
88 | 0 | Ref { |
89 | 0 | ptr: NonNull::from(ptr), |
90 | 0 | lifetime: PhantomData, |
91 | 0 | } |
92 | 0 | } Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<base::mmap::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<base::errno::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::wrapper::MessageError<alloc::string::String>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::wrapper::MessageError<&str>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::wrapper::BoxedError>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, anyhow::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, serde_json::error::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, vm_memory::guest_memory::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, base::tube::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, base::errno::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, vm_memory::guest_memory::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, base::errno::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, disk::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, resources::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vmm_vhost::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vhost::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, cros_async::io_ext::AsyncError>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vm_control::api::ApiClientError>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, serde_json::error::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vm_memory::guest_memory::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::mmap::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::pit::PitError>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::vfio::VfioError>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::pci::pci_device::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::iommu::IommuError>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::vhost::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::irqchip::ioapic::IoapicError>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::irqchip::userspace::TimerWorkerError>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::sync::mpsc::RecvError>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::vhost_user_frontend::error::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ControlError>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ExecuteError>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::wrapper::DisplayError<&str>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<vmm_vhost::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<vhost::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<cros_async::io_ext::AsyncError>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<lz4_flex::frame::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<serde_json::error::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<base::volatile_memory::VolatileMemoryError>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<base::tube::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::serial_device::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::pci::pci_device::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::pci::msix::MsixError>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::virtio::vhost::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::irqchip::ioapic::IoapicError>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::virtio::vhost_user_frontend::error::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::virtio::vhost::user::device::handler::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<disk::Error>>::new Unexecuted instantiation: <anyhow::ptr::Ref<resources::Error>>::new Unexecuted instantiation: <anyhow::ptr::Ref<vmm_vhost::Error>>::new Unexecuted instantiation: <anyhow::ptr::Ref<vhost::Error>>::new Unexecuted instantiation: <anyhow::ptr::Ref<cros_async::io_ext::AsyncError>>::new Unexecuted instantiation: <anyhow::ptr::Ref<vm_control::api::ApiClientError>>::new Unexecuted instantiation: <anyhow::ptr::Ref<serde_json::error::Error>>::new Unexecuted instantiation: <anyhow::ptr::Ref<vm_memory::guest_memory::Error>>::new Unexecuted instantiation: <anyhow::ptr::Ref<base::mmap::Error>>::new Unexecuted instantiation: <anyhow::ptr::Ref<devices::pit::PitError>>::new Unexecuted instantiation: <anyhow::ptr::Ref<devices::vfio::VfioError>>::new Unexecuted instantiation: <anyhow::ptr::Ref<devices::pci::pci_device::Error>>::new Unexecuted instantiation: <anyhow::ptr::Ref<devices::pci::coiommu::Error>>::new Unexecuted instantiation: <anyhow::ptr::Ref<devices::virtio::iommu::IommuError>>::new Unexecuted instantiation: <anyhow::ptr::Ref<devices::virtio::vhost::Error>>::new Unexecuted instantiation: <anyhow::ptr::Ref<devices::irqchip::ioapic::IoapicError>>::new Unexecuted instantiation: <anyhow::ptr::Ref<devices::irqchip::userspace::TimerWorkerError>>::new Unexecuted instantiation: <anyhow::ptr::Ref<std::sync::mpsc::RecvError>>::new Unexecuted instantiation: <anyhow::ptr::Ref<devices::virtio::vhost_user_frontend::error::Error>>::new Unexecuted instantiation: <anyhow::ptr::Ref<devices::virtio::block::asynchronous::ControlError>>::new Unexecuted instantiation: <anyhow::ptr::Ref<devices::virtio::block::asynchronous::ExecuteError>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, minijail::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, minijail::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::wrapper::DisplayError<alloc::string::String>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<minijail::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<minijail::Error>>::new Unexecuted instantiation: <anyhow::ptr::Ref<alloc::string::String>>::new Unexecuted instantiation: <anyhow::ptr::Ref<&str>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<base::errno::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, std::io::error::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, anyhow::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::tube::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::io::error::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<std::io::error::Error>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<alloc::string::String>>::new Unexecuted instantiation: <anyhow::ptr::Ref<base::tube::Error>>::new Unexecuted instantiation: <anyhow::ptr::Ref<std::io::error::Error>>::new Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::errno::Error>>>>::new Unexecuted instantiation: <anyhow::ptr::Ref<base::errno::Error>>::new Unexecuted instantiation: <anyhow::ptr::Ref<&str>>::new |
93 | | |
94 | | #[cfg(not(anyhow_no_ptr_addr_of))] |
95 | 0 | pub fn from_raw(ptr: NonNull<T>) -> Self { |
96 | 0 | Ref { |
97 | 0 | ptr, |
98 | 0 | lifetime: PhantomData, |
99 | 0 | } |
100 | 0 | } Unexecuted instantiation: <anyhow::ptr::Ref<base::mmap::Error>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<base::errno::Error>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<dyn core::error::Error + core::marker::Send + core::marker::Sync>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<alloc::boxed::Box<dyn core::error::Error + core::marker::Send + core::marker::Sync>>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<alloc::string::String>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<&str>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<vmm_vhost::Error>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<vhost::Error>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<cros_async::io_ext::AsyncError>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<lz4_flex::frame::Error>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<serde_json::error::Error>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<base::volatile_memory::VolatileMemoryError>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<base::tube::Error>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<devices::serial_device::Error>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<devices::pci::pci_device::Error>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<devices::pci::msix::MsixError>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<devices::virtio::vhost::Error>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<devices::irqchip::ioapic::IoapicError>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<devices::virtio::vhost_user_frontend::error::Error>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<devices::virtio::vhost::user::device::handler::Error>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<minijail::Error>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<base::errno::Error>>::from_raw Unexecuted instantiation: <anyhow::ptr::Ref<std::io::error::Error>>::from_raw |
101 | | |
102 | 0 | pub fn cast<U: CastTo>(self) -> Ref<'a, U::Target> { |
103 | 0 | Ref { |
104 | 0 | ptr: self.ptr.cast(), |
105 | 0 | lifetime: PhantomData, |
106 | 0 | } |
107 | 0 | } Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<base::mmap::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<base::errno::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<base::mmap::Error>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<base::errno::Error>> Unexecuted instantiation: <anyhow::ptr::Ref<base::mmap::Error>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<base::errno::Error>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::wrapper::MessageError<alloc::string::String>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::wrapper::MessageError<&str>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::wrapper::BoxedError>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<alloc::boxed::Box<dyn core::error::Error + core::marker::Send + core::marker::Sync>>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::wrapper::MessageError<alloc::string::String>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::wrapper::MessageError<&str>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<alloc::boxed::Box<dyn core::error::Error + core::marker::Send + core::marker::Sync>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::wrapper::BoxedError>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<alloc::string::String>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<&str>> Unexecuted instantiation: <anyhow::ptr::Ref<alloc::string::String>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<&str>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, anyhow::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, serde_json::error::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, vm_memory::guest_memory::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, base::tube::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, base::errno::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, vm_memory::guest_memory::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, base::errno::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, disk::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, resources::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vmm_vhost::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vhost::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, cros_async::io_ext::AsyncError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vm_control::api::ApiClientError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, serde_json::error::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vm_memory::guest_memory::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::mmap::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::pit::PitError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::vfio::VfioError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::pci::pci_device::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::iommu::IommuError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::vhost::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::irqchip::ioapic::IoapicError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::irqchip::userspace::TimerWorkerError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::sync::mpsc::RecvError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::vhost_user_frontend::error::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ControlError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ExecuteError>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::wrapper::DisplayError<&str>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<vmm_vhost::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<vhost::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<cros_async::io_ext::AsyncError>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<lz4_flex::frame::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<serde_json::error::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<base::volatile_memory::VolatileMemoryError>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<base::tube::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::serial_device::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::pci::pci_device::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::pci::msix::MsixError>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::virtio::vhost::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::irqchip::ioapic::IoapicError>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::virtio::vhost_user_frontend::error::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::virtio::vhost::user::device::handler::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<disk::Error>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<resources::Error>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<vmm_vhost::Error>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<vhost::Error>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, anyhow::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, serde_json::error::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, vm_memory::guest_memory::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, base::tube::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, base::errno::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, vm_memory::guest_memory::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, base::errno::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, disk::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, resources::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vmm_vhost::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vhost::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, cros_async::io_ext::AsyncError>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vm_control::api::ApiClientError>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, serde_json::error::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vm_memory::guest_memory::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::mmap::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::pit::PitError>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::vfio::VfioError>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::pci::pci_device::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::iommu::IommuError>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::vhost::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::irqchip::ioapic::IoapicError>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::irqchip::userspace::TimerWorkerError>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::sync::mpsc::RecvError>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::vhost_user_frontend::error::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ControlError>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ExecuteError>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::wrapper::DisplayError<&str>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<vmm_vhost::Error>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<vhost::Error>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<cros_async::io_ext::AsyncError>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<lz4_flex::frame::Error>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<serde_json::error::Error>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<base::volatile_memory::VolatileMemoryError>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<base::tube::Error>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<devices::serial_device::Error>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<devices::pci::pci_device::Error>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<devices::pci::msix::MsixError>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<devices::virtio::vhost::Error>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<devices::irqchip::ioapic::IoapicError>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<devices::virtio::vhost_user_frontend::error::Error>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<devices::virtio::vhost::user::device::handler::Error>> Unexecuted instantiation: <anyhow::ptr::Ref<cros_async::io_ext::AsyncError>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<lz4_flex::frame::Error>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<vm_control::api::ApiClientError>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<serde_json::error::Error>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<vm_memory::guest_memory::Error>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<base::volatile_memory::VolatileMemoryError>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<devices::serial_device::Error>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<devices::pit::PitError>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<devices::vfio::VfioError>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<devices::pci::pci_device::Error>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<devices::pci::msix::MsixError>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<devices::pci::coiommu::Error>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<devices::virtio::iommu::IommuError>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<devices::virtio::vhost::Error>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<devices::irqchip::ioapic::IoapicError>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<devices::irqchip::userspace::TimerWorkerError>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<std::sync::mpsc::RecvError>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<devices::virtio::vhost_user_frontend::error::Error>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<devices::virtio::block::asynchronous::ControlError>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<devices::virtio::block::asynchronous::ExecuteError>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<devices::virtio::vhost::user::device::handler::Error>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, minijail::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, minijail::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::wrapper::DisplayError<alloc::string::String>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<minijail::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<minijail::Error>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, minijail::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, minijail::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::wrapper::DisplayError<alloc::string::String>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<minijail::Error>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<base::errno::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<base::errno::Error>> Unexecuted instantiation: <anyhow::ptr::Ref<base::errno::Error>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, std::io::error::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, anyhow::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::tube::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::io::error::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<std::io::error::Error>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, std::io::error::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, anyhow::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::tube::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::io::error::Error>>> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<std::io::error::Error>> Unexecuted instantiation: <anyhow::ptr::Ref<base::tube::Error>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<std::io::error::Error>>::cast::<()> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::errno::Error>>>>::cast::<anyhow::error::ErrorImpl> Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl>>::cast::<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::errno::Error>>> |
108 | | |
109 | | #[cfg(not(anyhow_no_ptr_addr_of))] |
110 | 0 | pub fn by_mut(self) -> Mut<'a, T> { |
111 | 0 | Mut { |
112 | 0 | ptr: self.ptr, |
113 | 0 | lifetime: PhantomData, |
114 | 0 | } |
115 | 0 | } |
116 | | |
117 | | #[cfg(not(anyhow_no_ptr_addr_of))] |
118 | 0 | pub fn as_ptr(self) -> *const T { |
119 | 0 | self.ptr.as_ptr() as *const T |
120 | 0 | } Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<base::mmap::Error>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<base::errno::Error>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::wrapper::MessageError<alloc::string::String>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::wrapper::MessageError<&str>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<alloc::boxed::Box<dyn core::error::Error + core::marker::Send + core::marker::Sync>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::wrapper::BoxedError>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<alloc::string::String>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<&str>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, anyhow::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, serde_json::error::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, vm_memory::guest_memory::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, base::tube::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, base::errno::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, vm_memory::guest_memory::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, base::errno::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, disk::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, resources::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vmm_vhost::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vhost::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, cros_async::io_ext::AsyncError>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vm_control::api::ApiClientError>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, serde_json::error::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vm_memory::guest_memory::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::mmap::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::pit::PitError>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::vfio::VfioError>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::pci::pci_device::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::iommu::IommuError>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::vhost::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::irqchip::ioapic::IoapicError>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::irqchip::userspace::TimerWorkerError>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::sync::mpsc::RecvError>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::vhost_user_frontend::error::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ControlError>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ExecuteError>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::wrapper::DisplayError<&str>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<vmm_vhost::Error>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<vhost::Error>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<cros_async::io_ext::AsyncError>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<lz4_flex::frame::Error>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<serde_json::error::Error>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<base::volatile_memory::VolatileMemoryError>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<base::tube::Error>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::serial_device::Error>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::pci::pci_device::Error>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::pci::msix::MsixError>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::virtio::vhost::Error>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::irqchip::ioapic::IoapicError>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::virtio::vhost_user_frontend::error::Error>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<devices::virtio::vhost::user::device::handler::Error>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, minijail::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, minijail::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::wrapper::DisplayError<alloc::string::String>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<minijail::Error>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<base::errno::Error>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, std::io::error::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, anyhow::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::tube::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::io::error::Error>>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<std::io::error::Error>>>::as_ptr Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::errno::Error>>>>::as_ptr |
121 | | |
122 | 0 | pub unsafe fn deref(self) -> &'a T { |
123 | 0 | &*self.ptr.as_ptr() |
124 | 0 | } Unexecuted instantiation: <anyhow::ptr::Ref<dyn core::error::Error + core::marker::Send + core::marker::Sync>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, anyhow::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, serde_json::error::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, vm_memory::guest_memory::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, base::tube::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, base::errno::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, vm_memory::guest_memory::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<devices::pci::coiommu::Error, base::errno::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::sync::mpsc::SendError<devices::virtio::console::worker::WorkerRequest>>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, disk::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, resources::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vmm_vhost::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vhost::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, cros_async::io_ext::AsyncError>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vm_control::api::ApiClientError>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, serde_json::error::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, vm_memory::guest_memory::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::mmap::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::pit::PitError>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::vfio::VfioError>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::pci::pci_device::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::iommu::IommuError>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::vhost::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::irqchip::ioapic::IoapicError>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::irqchip::userspace::TimerWorkerError>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::sync::mpsc::RecvError>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::vhost_user_frontend::error::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ControlError>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, devices::virtio::block::asynchronous::ExecuteError>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, minijail::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, minijail::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<alloc::string::String, std::io::error::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, anyhow::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::tube::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, std::io::error::Error>>>>::deref Unexecuted instantiation: <anyhow::ptr::Ref<anyhow::error::ErrorImpl<anyhow::error::ContextError<&str, base::errno::Error>>>>::deref |
125 | | } |
126 | | |
127 | | #[repr(transparent)] |
128 | | pub struct Mut<'a, T> |
129 | | where |
130 | | T: ?Sized, |
131 | | { |
132 | | pub ptr: NonNull<T>, |
133 | | lifetime: PhantomData<&'a mut T>, |
134 | | } |
135 | | |
136 | | impl<'a, T> Copy for Mut<'a, T> where T: ?Sized {} |
137 | | |
138 | | impl<'a, T> Clone for Mut<'a, T> |
139 | | where |
140 | | T: ?Sized, |
141 | | { |
142 | 0 | fn clone(&self) -> Self { |
143 | 0 | *self |
144 | 0 | } |
145 | | } |
146 | | |
147 | | impl<'a, T> Mut<'a, T> |
148 | | where |
149 | | T: ?Sized, |
150 | | { |
151 | | #[cfg(anyhow_no_ptr_addr_of)] |
152 | | pub fn new(ptr: &'a mut T) -> Self { |
153 | | Mut { |
154 | | ptr: NonNull::from(ptr), |
155 | | lifetime: PhantomData, |
156 | | } |
157 | | } |
158 | | |
159 | 0 | pub fn cast<U: CastTo>(self) -> Mut<'a, U::Target> { |
160 | 0 | Mut { |
161 | 0 | ptr: self.ptr.cast(), |
162 | 0 | lifetime: PhantomData, |
163 | 0 | } |
164 | 0 | } |
165 | | |
166 | | #[cfg(not(anyhow_no_ptr_addr_of))] |
167 | 0 | pub fn by_ref(self) -> Ref<'a, T> { |
168 | 0 | Ref { |
169 | 0 | ptr: self.ptr, |
170 | 0 | lifetime: PhantomData, |
171 | 0 | } |
172 | 0 | } |
173 | | |
174 | 0 | pub fn extend<'b>(self) -> Mut<'b, T> { |
175 | 0 | Mut { |
176 | 0 | ptr: self.ptr, |
177 | 0 | lifetime: PhantomData, |
178 | 0 | } |
179 | 0 | } |
180 | | |
181 | 0 | pub unsafe fn deref_mut(self) -> &'a mut T { |
182 | 0 | &mut *self.ptr.as_ptr() |
183 | 0 | } |
184 | | } |
185 | | |
186 | | impl<'a, T> Mut<'a, T> { |
187 | 0 | pub unsafe fn read(self) -> T { |
188 | 0 | self.ptr.as_ptr().read() |
189 | 0 | } |
190 | | } |
191 | | |
192 | | // Force turbofish on all calls of `.cast::<U>()`. |
193 | | pub trait CastTo { |
194 | | type Target; |
195 | | } |
196 | | |
197 | | impl<T> CastTo for T { |
198 | | type Target = T; |
199 | | } |