pub struct UefiResource<C = VarNotClaimed> {
pub msvm_fd: ReadVar<PathBuf, C>,
}
Fields§
§msvm_fd: ReadVar<PathBuf, C>
Implementations§
Source§impl UefiResource<VarClaimed>
impl UefiResource<VarClaimed>
pub fn add_to_resources( self, resources: &mut BTreeMap<ResourceType, PathBuf>, rt: &mut RustRuntimeServices<'_>, )
Trait Implementations§
Source§impl ClaimVar for UefiResource
impl ClaimVar for UefiResource
Source§type Claimed = UefiResource<VarClaimed>
type Claimed = UefiResource<VarClaimed>
The claimed version of Self.
Source§fn claim(self, ctx: &mut StepCtx<'_>) -> UefiResource<VarClaimed>
fn claim(self, ctx: &mut StepCtx<'_>) -> UefiResource<VarClaimed>
Claim the Var for this step, allowing it to be accessed at runtime.
Auto Trait Implementations§
impl<C> Freeze for UefiResource<C>
impl<C> RefUnwindSafe for UefiResource<C>where
C: RefUnwindSafe,
impl<C> Send for UefiResource<C>where
C: Send,
impl<C> Sync for UefiResource<C>where
C: Sync,
impl<C> Unpin for UefiResource<C>where
C: Unpin,
impl<C> UnwindSafe for UefiResource<C>where
C: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more