pub enum MemorySize {
NotInstalled,
Unknown,
SeeExtendedSize,
Kilobytes(u16),
Megabytes(u16),
}
Expand description
§Size of Memory
Variants§
NotInstalled
No Memory Device Installed in the Socket
Unknown
Memory Size is Unknown
SeeExtendedSize
The actual size is stored in the Extended Size field
Kilobytes(u16)
Size of Memory (KB)
Megabytes(u16)
Size of Memory (MB)
Trait Implementations§
Source§impl Debug for MemorySize
impl Debug for MemorySize
Source§impl From<u16> for MemorySize
If the value is 0, no memory device is installed in the
socket; if the size is unknown, the field value is
FFFFh. If the size is 32 GB-1 MB or greater, the
field value is 7FFFh and the actual size is stored in
the Extended Size field.
The granularity in which the value is specified
depends on the setting of the most-significant bit (bit
15). If the bit is 0, the value is specified in megabyte
units; if the bit is 1, the value is specified in kilobyte
units. For example, the value 8100h identifies a
256 KB memory device and 0100h identifies a
256 MB memory device.
impl From<u16> for MemorySize
If the value is 0, no memory device is installed in the socket; if the size is unknown, the field value is FFFFh. If the size is 32 GB-1 MB or greater, the field value is 7FFFh and the actual size is stored in the Extended Size field. The granularity in which the value is specified depends on the setting of the most-significant bit (bit 15). If the bit is 0, the value is specified in megabyte units; if the bit is 1, the value is specified in kilobyte units. For example, the value 8100h identifies a 256 KB memory device and 0100h identifies a 256 MB memory device.
Source§impl PartialEq for MemorySize
impl PartialEq for MemorySize
Source§impl Serialize for MemorySize
impl Serialize for MemorySize
impl Eq for MemorySize
impl StructuralPartialEq for MemorySize
Auto Trait Implementations§
impl Freeze for MemorySize
impl RefUnwindSafe for MemorySize
impl Send for MemorySize
impl Sync for MemorySize
impl Unpin for MemorySize
impl UnwindSafe for MemorySize
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