pub enum MemorySize {
    NotInstalled,
    Unknown,
    SeeExtendedSize,
    Kilobytes(u16),
    Megabytes(u16),
}
Expand description

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

Formats the value using the given formatter. Read more

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.

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.