Sdt

Trait Sdt 

Source
pub trait Sdt {
    // Required methods
    fn len(&self) -> usize;
    fn write_to_guest<M: GuestMemory>(
        &mut self,
        mem: &M,
        address: GuestAddress,
    ) -> Result<()>;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}
Expand description

A trait for functionality around System Descriptor Tables.

Required Methods§

Source

fn len(&self) -> usize

Get the length of the table

Source

fn write_to_guest<M: GuestMemory>( &mut self, mem: &M, address: GuestAddress, ) -> Result<()>

Write the table in guest memory

Provided Methods§

Source

fn is_empty(&self) -> bool

Return true if Sdt is empty

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Sdt for Dsdt

Source§

impl Sdt for Fadt

Source§

impl Sdt for Madt

Source§

impl Sdt for Mcfg

Source§

impl Sdt for Rsdp

Source§

impl Sdt for Xsdt