Skip to main content

KernelMetadata

Trait KernelMetadata 

Source
pub trait KernelMetadata:
    Send
    + Sync
    + 'static {
    // Required methods
    fn id(&self) -> KernelId;
    fn address_type(&self) -> StorageType;

    // Provided method
    fn name(&self) -> &'static str { ... }
}
Expand description

Implement this trait to create a kernel definition.

Required Methods§

Source

fn id(&self) -> KernelId

Identifier for the kernel, used for caching kernel compilation.

Source

fn address_type(&self) -> StorageType

Type of addresses in this kernel

Provided Methods§

Source

fn name(&self) -> &'static str

Name of the kernel for debugging.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<C: Compiler> KernelMetadata for Box<dyn CubeTask<C>>

Source§

fn id(&self) -> KernelId

Source§

fn name(&self) -> &'static str

Source§

fn address_type(&self) -> StorageType

Implementors§