pub struct SystemInfo {
pub processor_architecture: ProcessorArchitecture,
pub page_size: u32,
pub minimum_application_address: *mut c_void,
pub maximum_application_address: *mut c_void,
pub active_processor_mask: usize,
pub processor_count: u32,
pub allocation_granularity: u32,
pub processor_level: u16,
pub processor_revision: u16,
}
Information about the current system.
The processor architecture of the installed operating system.
The page size and the granularity of page protection and commitment.
This is the page size used by the VirtualAlloc function.
A pointer to the lowest memory address accessible to applications and
dynamic-link libraries (DLLs).
A pointer to the highest memory address accessible to applications and DLLs.
A mask representing the set of processors configured into the system.
Bit 0 is processor 0; bit 31 is processor 31.
The number of logical processors in the current group.
The granularity for the starting address at which virtual memory can be allocated.
The architecture-dependent processor level. It should be used only for display purposes.
If processor_architecture
is Intel
, processor_level
is defined by the CPU vendor.
If processor_architecture
is IA64
, processor_level
is set to 1
.
The architecture-dependent processor revision.
Processor | Value |
Intel Pentium, Cyrix, or NextGen 586 | The high byte is the model and the low byte is the stepping. For example, if the value is xxyy, the model number and stepping can be displayed as follows: Model xx, Stepping yy |
Intel 80386 or 80486 | A value of the form xxyz. If xx is equal to 0xFF, y - 0xA is the model number, and z is the stepping identifier. If xx is not equal to 0xFF, xx + 'A' is the stepping letter and yz is the minor stepping. |
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given [Hasher
]. Read more
Feeds a slice of this type into the given [Hasher
]. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static