#[repr(u8)]pub enum KernelArch {
X86_64 = 0,
Aarch64 = 1,
Riscv64 = 2,
Universal = 254,
Unknown = 255,
}Expand description
Target CPU architecture for the kernel image.
Variants§
X86_64 = 0
AMD64 / Intel 64.
Aarch64 = 1
ARM 64-bit (ARMv8-A and later).
Riscv64 = 2
RISC-V 64-bit (RV64GC).
Universal = 254
Architecture-independent (e.g., interpreted).
Unknown = 255
Reserved / unspecified.
Trait Implementations§
Source§impl Clone for KernelArch
impl Clone for KernelArch
Source§fn clone(&self) -> KernelArch
fn clone(&self) -> KernelArch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KernelArch
impl Debug for KernelArch
Source§impl Hash for KernelArch
impl Hash for KernelArch
Source§impl PartialEq for KernelArch
impl PartialEq for KernelArch
Source§impl TryFrom<u8> for KernelArch
impl TryFrom<u8> for KernelArch
impl Copy for KernelArch
impl Eq for KernelArch
impl StructuralPartialEq for KernelArch
Auto Trait Implementations§
impl Freeze for KernelArch
impl RefUnwindSafe for KernelArch
impl Send for KernelArch
impl Sync for KernelArch
impl Unpin for KernelArch
impl UnwindSafe for KernelArch
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