pub struct VpciResource(/* private fields */);
Implementations§
Source§impl VpciResource
impl VpciResource
pub fn new( provider: Option<&GUID>, flags: WHV_ALLOCATE_VPCI_RESOURCE_FLAGS, descriptor: &VpciResourceDescriptor<'_>, ) -> Result<Self, WHvError>
Trait Implementations§
Source§impl AsHandle for VpciResource
impl AsHandle for VpciResource
Source§fn as_handle(&self) -> BorrowedHandle<'_>
fn as_handle(&self) -> BorrowedHandle<'_>
Borrows the handle. Read more
Source§impl Debug for VpciResource
impl Debug for VpciResource
Source§impl From<OwnedHandle> for VpciResource
impl From<OwnedHandle> for VpciResource
Source§fn from(handle: OwnedHandle) -> Self
fn from(handle: OwnedHandle) -> Self
Converts to this type from the input type.
Source§impl From<VpciResource> for OwnedHandle
impl From<VpciResource> for OwnedHandle
Source§fn from(resource: VpciResource) -> Self
fn from(resource: VpciResource) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VpciResource
impl RefUnwindSafe for VpciResource
impl Send for VpciResource
impl Sync for VpciResource
impl Unpin for VpciResource
impl UnwindSafe for VpciResource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more