Trait Table

Source
pub trait Table {
    const SIGNATURE: u64;
    const MIN_REVISION: Revision;

    // Required method
    fn header(&self) -> &TableHeader;

    // Provided methods
    fn verify(&self)
       where Self: Sized { ... }
    fn verify_signature(&self) { ... }
    fn verify_revision(&self) { ... }
    fn verify_size(&self)
       where Self: Sized { ... }
    fn verify_crc32(&self) { ... }
}

Required Associated Constants§

Required Methods§

Provided Methods§

Source

fn verify(&self)
where Self: Sized,

Source

fn verify_signature(&self)

Source

fn verify_revision(&self)

Source

fn verify_size(&self)
where Self: Sized,

Source

fn verify_crc32(&self)

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 Table for BootServices

Source§

const SIGNATURE: u64 = 6_220_110_259_551_162_178u64

Source§

const MIN_REVISION: Revision = Revision::V2_00

Source§

impl Table for RuntimeServices

Source§

const SIGNATURE: u64 = 6_220_110_259_551_098_194u64

Source§

const MIN_REVISION: Revision = Revision::V2_00

Source§

impl Table for SystemTable<'_>

Source§

const SIGNATURE: u64 = 6_076_298_535_811_760_713u64

Source§

const MIN_REVISION: Revision = Revision::V2_00