Struct uefi_specs::uefi::time::EFI_TIME
source · #[repr(C)]pub struct EFI_TIME {
pub year: u16,
pub month: u8,
pub day: u8,
pub hour: u8,
pub minute: u8,
pub second: u8,
pub pad1: u8,
pub nanosecond: u32,
pub timezone: EfiTimezone,
pub daylight: EfiDaylight,
pub pad2: u8,
}
Expand description
UEFI Time Structure
UEFI spec 8.3 - Time Services
Year: 1900 - 9999
Month: 1 - 12
Day: 1 - 31
Hour: 0 - 23
Minute: 0 - 59
Second: 0 - 59
Nanosecond: 0 - 999,999,999
TimeZone: -1440 to 1440 or 2047
Fields§
§year: u16
§month: u8
§day: u8
§hour: u8
§minute: u8
§second: u8
§pad1: u8
§nanosecond: u32
§timezone: EfiTimezone
§daylight: EfiDaylight
§pad2: u8
Implementations§
Trait Implementations§
source§impl AsBytes for EFI_TIMEwhere
u16: AsBytes,
u8: AsBytes,
u32: AsBytes,
EfiTimezone: AsBytes,
EfiDaylight: AsBytes,
HasPadding<EFI_TIME, { _ }>: ShouldBe<false>,
impl AsBytes for EFI_TIMEwhere
u16: AsBytes,
u8: AsBytes,
u32: AsBytes,
EfiTimezone: AsBytes,
EfiDaylight: AsBytes,
HasPadding<EFI_TIME, { _ }>: ShouldBe<false>,
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
source§impl FromBytes for EFI_TIMEwhere
u16: FromBytes,
u8: FromBytes,
u32: FromBytes,
EfiTimezone: FromBytes,
EfiDaylight: FromBytes,
impl FromBytes for EFI_TIMEwhere
u16: FromBytes,
u8: FromBytes,
u32: FromBytes,
EfiTimezone: FromBytes,
EfiDaylight: FromBytes,
§fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeroes for EFI_TIMEwhere
u16: FromZeroes,
u8: FromZeroes,
u32: FromZeroes,
EfiTimezone: FromZeroes,
EfiDaylight: FromZeroes,
impl FromZeroes for EFI_TIMEwhere
u16: FromZeroes,
u8: FromZeroes,
u32: FromZeroes,
EfiTimezone: FromZeroes,
EfiDaylight: FromZeroes,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self
from zeroed bytes. Read more§fn new_box_zeroed() -> Box<Self>where
Self: Sized,
fn new_box_zeroed() -> Box<Self>where
Self: Sized,
Creates a
Box<Self>
from zeroed bytes. Read moreimpl Copy for EFI_TIME
impl Eq for EFI_TIME
impl StructuralPartialEq for EFI_TIME
Auto Trait Implementations§
impl Freeze for EFI_TIME
impl RefUnwindSafe for EFI_TIME
impl Send for EFI_TIME
impl Sync for EFI_TIME
impl Unpin for EFI_TIME
impl UnwindSafe for EFI_TIME
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)