pub struct ExplicitSystemInfo {
pub boot_time_secs: u64,
pub ticks_per_second: u64,
pub page_size: u64,
pub is_little_endian: bool,
}
Expand description
A convenience stuct implementing SystemInfoInterface with explicitly-specified values.
Fields§
§boot_time_secs: u64
§ticks_per_second: u64
§page_size: u64
§is_little_endian: bool
Trait Implementations§
source§impl Clone for ExplicitSystemInfo
impl Clone for ExplicitSystemInfo
source§fn clone(&self) -> ExplicitSystemInfo
fn clone(&self) -> ExplicitSystemInfo
Returns a copy 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 ExplicitSystemInfo
impl Debug for ExplicitSystemInfo
source§impl<'de> Deserialize<'de> for ExplicitSystemInfo
impl<'de> Deserialize<'de> for ExplicitSystemInfo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for ExplicitSystemInfo
impl Serialize for ExplicitSystemInfo
source§impl SystemInfoInterface for ExplicitSystemInfo
impl SystemInfoInterface for ExplicitSystemInfo
fn boot_time_secs(&self) -> ProcResult<u64>
fn ticks_per_second(&self) -> u64
fn page_size(&self) -> u64
source§fn is_little_endian(&self) -> bool
fn is_little_endian(&self) -> bool
Whether the system is little endian (true) or big endian (false).
fn boot_time(&self) -> ProcResult<DateTime<Local>>
impl Copy for ExplicitSystemInfo
Auto Trait Implementations§
impl Freeze for ExplicitSystemInfo
impl RefUnwindSafe for ExplicitSystemInfo
impl Send for ExplicitSystemInfo
impl Sync for ExplicitSystemInfo
impl Unpin for ExplicitSystemInfo
impl UnwindSafe for ExplicitSystemInfo
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
)