#[repr(C, packed(1))]pub struct Bgrt {
pub header: Sdt,
pub version: u16,
pub status: u8,
pub image_type: u8,
pub image_base: u64,
pub image_offset_x: u32,
pub image_offset_y: u32,
}Expand description
BGRT ACPI table structure
Fields§
§header: Sdt§version: u16§status: u8§image_type: u8§image_base: u64§image_offset_x: u32§image_offset_y: u32Implementations§
Source§impl Bgrt
impl Bgrt
Sourcepub fn was_displayed(&self) -> bool
pub fn was_displayed(&self) -> bool
Check if the image was displayed by firmware
Sourcepub fn image_format(&self) -> u16
pub fn image_format(&self) -> u16
Get image format (0 = BMP)
Sourcepub fn image_base(&self) -> u64
pub fn image_base(&self) -> u64
Get image base address
Sourcepub fn image_offset_x(&self) -> u32
pub fn image_offset_x(&self) -> u32
Get image X offset
Sourcepub fn image_offset_y(&self) -> u32
pub fn image_offset_y(&self) -> u32
Get image Y offset
Trait Implementations§
Source§impl FromBytes for Bgrt
impl FromBytes for Bgrt
Source§impl TryFromBytes for Bgrt
impl TryFromBytes for Bgrt
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for Bgrt
Auto Trait Implementations§
impl Freeze for Bgrt
impl RefUnwindSafe for Bgrt
impl Send for Bgrt
impl Sync for Bgrt
impl Unpin for Bgrt
impl UnsafeUnpin for Bgrt
impl UnwindSafe for Bgrt
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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