pub struct KernelInfo {
pub version: &'static str,
pub build_time: &'static str,
pub boot_time_ns: u64,
pub current_time_ns: u64,
pub cpu_count: u8,
}Expand description
Kernel information.
Fields§
§version: &'static strKernel version string.
build_time: &'static strBuild timestamp.
boot_time_ns: u64Boot time in nanoseconds since epoch.
current_time_ns: u64Current time in nanoseconds since epoch.
cpu_count: u8Number of online CPUs.
Trait Implementations§
Source§impl Clone for KernelInfo
impl Clone for KernelInfo
Source§fn clone(&self) -> KernelInfo
fn clone(&self) -> KernelInfo
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 moreAuto Trait Implementations§
impl Freeze for KernelInfo
impl RefUnwindSafe for KernelInfo
impl Send for KernelInfo
impl Sync for KernelInfo
impl Unpin for KernelInfo
impl UnsafeUnpin for KernelInfo
impl UnwindSafe for KernelInfo
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