pub struct SnpBootShimPlatformFlags(/* private fields */);Expand description
Options for the SNP bootshim, set by the image generator.
Implementations§
Source§impl SnpBootShimPlatformFlags
impl SnpBootShimPlatformFlags
Sourcepub const fn accept_all_memory(&self) -> bool
pub const fn accept_all_memory(&self) -> bool
The shim accepts all RAM before it calls the Linux EFI stub, instead of reporting the RAM that it does not need as unaccepted.
Bits: 0..1
Sourcepub const fn with_accept_all_memory_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_accept_all_memory_checked( self, value: bool, ) -> Result<Self, ()>
The shim accepts all RAM before it calls the Linux EFI stub, instead of reporting the RAM that it does not need as unaccepted.
Bits: 0..1
Sourcepub const fn with_accept_all_memory(self, value: bool) -> Self
pub const fn with_accept_all_memory(self, value: bool) -> Self
The shim accepts all RAM before it calls the Linux EFI stub, instead of reporting the RAM that it does not need as unaccepted.
Bits: 0..1
Sourcepub const fn set_accept_all_memory(&mut self, value: bool)
pub const fn set_accept_all_memory(&mut self, value: bool)
The shim accepts all RAM before it calls the Linux EFI stub, instead of reporting the RAM that it does not need as unaccepted.
Bits: 0..1
Sourcepub const fn set_accept_all_memory_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_accept_all_memory_checked( &mut self, value: bool, ) -> Result<(), ()>
The shim accepts all RAM before it calls the Linux EFI stub, instead of reporting the RAM that it does not need as unaccepted.
Bits: 0..1
Sourcepub const fn with_reserved_checked(self, value: u32) -> Result<Self, ()>
pub const fn with_reserved_checked(self, value: u32) -> Result<Self, ()>
Must be zero.
Bits: 1..32
Sourcepub const fn with_reserved(self, value: u32) -> Self
pub const fn with_reserved(self, value: u32) -> Self
Must be zero.
Bits: 1..32
Sourcepub const fn set_reserved(&mut self, value: u32)
pub const fn set_reserved(&mut self, value: u32)
Must be zero.
Bits: 1..32
Trait Implementations§
Source§impl Clone for SnpBootShimPlatformFlags
impl Clone for SnpBootShimPlatformFlags
Source§fn clone(&self) -> SnpBootShimPlatformFlags
fn clone(&self) -> SnpBootShimPlatformFlags
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SnpBootShimPlatformFlags
impl Debug for SnpBootShimPlatformFlags
Source§impl Default for SnpBootShimPlatformFlags
impl Default for SnpBootShimPlatformFlags
Source§impl From<SnpBootShimPlatformFlags> for u32
impl From<SnpBootShimPlatformFlags> for u32
Source§fn from(v: SnpBootShimPlatformFlags) -> u32
fn from(v: SnpBootShimPlatformFlags) -> u32
Source§impl From<u32> for SnpBootShimPlatformFlags
impl From<u32> for SnpBootShimPlatformFlags
Source§impl FromBytes for SnpBootShimPlatformFlagswhere
u32: FromBytes,
impl FromBytes for SnpBootShimPlatformFlagswhere
u32: FromBytes,
§fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
&Self. Read more§fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
Source§impl FromZeros for SnpBootShimPlatformFlagswhere
u32: FromZeros,
impl FromZeros for SnpBootShimPlatformFlagswhere
u32: FromZeros,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Self from zeroed bytes. Read more§fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
Box<Self> from zeroed bytes. Read more§fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
Vec<Self> from zeroed bytes. Read moreSource§impl IntoBytes for SnpBootShimPlatformFlagswhere
u32: IntoBytes,
impl IntoBytes for SnpBootShimPlatformFlagswhere
u32: IntoBytes,
§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl KnownLayout for SnpBootShimPlatformFlagswhere
Self: Sized,
impl KnownLayout for SnpBootShimPlatformFlagswhere
Self: Sized,
Source§type PointerMetadata = ()
type PointerMetadata = ()
Self. Read more§fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
Self with the given pointer
metadata. Read moreSource§impl PartialEq for SnpBootShimPlatformFlags
impl PartialEq for SnpBootShimPlatformFlags
Source§fn eq(&self, other: &SnpBootShimPlatformFlags) -> bool
fn eq(&self, other: &SnpBootShimPlatformFlags) -> bool
self and other values to be equal, and is used by ==.