#[repr(C, packed(1))]pub struct Slit {
pub header: Sdt,
pub locality_count: u64,
}Expand description
SLIT ACPI table structure
Fields§
§header: Sdt§locality_count: u64Implementations§
Source§impl Slit
impl Slit
Sourcepub fn num_localities(&self) -> u64
pub fn num_localities(&self) -> u64
Get number of system localities (NUMA nodes)
Sourcepub fn distance(&self, from: u64, to: u64) -> u8
pub fn distance(&self, from: u64, to: u64) -> u8
Get distance between two localities Returns 255 if indices are out of bounds
Sourcepub fn locality_distances(&self, from: u64) -> Option<&[u8]>
pub fn locality_distances(&self, from: u64) -> Option<&[u8]>
Get all distances for a locality
Trait Implementations§
Source§impl FromBytes for Slit
impl FromBytes for Slit
Source§impl TryFromBytes for Slit
impl TryFromBytes for Slit
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for Slit
Auto Trait Implementations§
impl Freeze for Slit
impl RefUnwindSafe for Slit
impl Send for Slit
impl Sync for Slit
impl Unpin for Slit
impl UnsafeUnpin for Slit
impl UnwindSafe for Slit
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more